RealistKJoin Date: 2011-02-20 Post Count: 3489 |
I have never had this problem before but now suddenly all my weapons in my RPG game have it, when I pick a weapon, it works fine the first time but if you unequip it and then equip it again, it just disappears.
If you reset then it just repeats as above.
After being in the game for a while it works fine again.
What can it be? the script? |
|
DEVMAC101Join Date: 2013-05-01 Post Count: 856 |
If its the RPG in your games list it appears to work fine for me, correct me if i'm wrong. |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
The Assassins Code [RPG] it is |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
nump |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
BUUUUUUMP |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
ugh.. -.- |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bumpppp |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
thanks ... -.- |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
Edd_EJoin Date: 2008-10-24 Post Count: 2047 |
Can you disable ALL scripts on weapon and then pick it up and see if it disappears? |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
I gtg now for some minutes so will try it out after, thanks already. |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
Yes, if I disable all scripts the weapon just picks up, then works and then it just disappears if you try to equip it again.
Of course the weapon doesn't work without the scripts. |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
ROBLOX call this forum scripting (helpers) |
|
smiley599Join Date: 2010-01-23 Post Count: 21869 |
Well is there any output |
|
|
When I played I found that to happen also, can you post the script here and also maybe switching the weapon might help. Or it just might be an error in script for 1 time use. |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
Well in my RPG game, it doesn't work after once used.
In a new place, it can be just re-equipped.
Also when I pick a random weapon out of free models and I use it once, it also disappears.
I think it is something in my game?
I have never had problems with this untill some certain time it just broke after one use.
The script called SwordScript:
dmg = (2) -- How much it Damage? (Yes the sword when fighting. xD)
hum = "Enemy" -- Whe don't really want to kill each others (player by player..) Put here your rpg monster humanoid name.
r = game:service("RunService")
ching = false
sword = script.Parent.Handle
Tool = script.Parent
function blow(hit)
if ching == true then return end
local humanoid = hit.Parent:findFirstChild(hum)
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
if humanoid~=nil then
tagHumanoid(humanoid, vPlayer)
local damage = dmg
humanoid:TakeDamage(damage)
local part = Instance.new("Part")
if (damage == 0) then
part.BrickColor = BrickColor.new(23)
else
part.BrickColor = BrickColor.new(21)
end
part.formFactor = 1
part.Shape = "Ball"
part.TopSurface = "0"
part.BottomSurface = "0"
part.Size = Vector3.new(1.375,1.375,1.375)
part.Position = hit.Parent.Head.Position+Vector3.new(math.random(-3.6,3.6),3.5,math.random(-3.6,3.6)) --<<<--MAIN REASON it broke, forgot your ,0 in middle of vector
part.Anchored = true
local m = Instance.new("Model")
part.Parent = m
m.Parent = hit.Parent
m.Name = ""..damage.." Damage"
part.Name = "Head"
local h = Instance.new("Humanoid")
h.Parent = m
local body = Instance.new("BodyPosition")
body.position = Vector3.new(0,7.85,0)
body.Parent = part
part.CanCollide = false
part.Reflectance = 0.11
part.Transparency = 0.25
h.MaxHealth = 0
h.Health = 0
ching = true
wait(1)
ching = false
m:remove()
wait(.1)
untagHumanoid(humanoid)
end
end
function tagHumanoid(humanoid, player)
local creator_tag = Instance.new("ObjectValue")
creator_tag.Value = player
creator_tag.Name = "creator"
creator_tag.Parent = humanoid
end
function untagHumanoid(humanoid)
if humanoid ~= nil then
local tag = humanoid:findFirstChild("creator")
if tag ~= nil then
tag.Parent = nil
end
end
end
function attack()
atk = {"Slash"; "Lunge"; "Slash"}
wew = atk[math.random(1, #atk)]
if (wew == "Slash") then
local anim = Instance.new("StringValue")
anim.Name = "toolanim"
anim.Value = "Slash"
anim.Parent = Tool
else
local anim = Instance.new("StringValue")
anim.Name = "toolanim"
anim.Value = "Lunge"
anim.Parent = Tool
force = Instance.new("BodyVelocity")
force.velocity = Vector3.new(0,10,0)
force.Parent = Tool.Parent.Torso
wait(.25)
swordOut()
wait(.25)
force.Parent = nil
wait(.5)
swordUp()
end end
function swordUp()
Tool.GripForward = Vector3.new(-1,0,0)
Tool.GripRight = Vector3.new(0,1,0)
Tool.GripUp = Vector3.new(0,0,1)
end
function swordOut()
Tool.GripForward = Vector3.new(0,0,1)
Tool.GripRight = Vector3.new(0,-1,0)
Tool.GripUp = Vector3.new(-1,0,0)
end
function swordAcross()
-- parry
end
Tool.Enabled = true
function onActivated()
if not Tool.Enabled then
return
end
Tool.Enabled = false
local character = Tool.Parent;
local humanoid = character.Humanoid
if humanoid == nil then
print("Humanoid not found")
return
end
attack()
wait(1)
Tool.Enabled = true
end
function onEquipped()
end
script.Parent.Activated:connect(onActivated)
script.Parent.Equipped:connect(onEquipped)
connection = sword.Touched:connect(blow)
Local Gui script:
local Tool = script.Parent;
enabled = true
function onButton1Down(mouse)
if not enabled then
return
end
enabled = false
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(.5)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
enabled = true
end
function onEquippedLocal(mouse)
if mouse == nil then
print("Mouse not found")
return
end
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
Tool.Equipped:connect(onEquippedLocal) |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
Guys c'mon I really need help with this |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
http://www.roblox.com/Zephys-Anti-Virus-Plugin-V0-94-item?id=151970737
I used this plugin and it said that it had removed some virusses like 200-250 or something so now it has 0 virusses. (Don't know if this plugin works or if there is a better virus remover)
I do not know what is causing it, it's still in there while the plugin says there are 0 virusses.
What could be causing this? |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
^^^^^^^^^^^^^^^^^^ |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
I will not stop bumping |
|