Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

What's wrong with this script?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

What's wrong with this script? There was nothing wrong with the output could someone help?

It doesn't turn green when you touch someone with a sword. Well, it does but it doesn't return to normal AND sometimes, it doesn't even turn green when you want it to... I need this upgraded please..

handle = script.Parent.Handle
handle.Touched:connect(function(part)
if part.Parent:FindFirstChild("Humanoid") and not part.Parent:FindFirstChild("LinkedSword")then 
handle.Mesh.VertexColor = Vector3.new(0, 255, 0)
else
handle.Mesh.VertexColor = Vector3.new(255, 255, 255)
end
end)
0
What exactly should the script be doing? Articulating 1335 — 10y
0
So when you touch a player, with the sword it turns green. And when you take it out it needs to return to normal. But the problem is it just stays green, and rarely even turns green when you stab them. I need it to be imediately. Lem0nzz 5 — 10y

Answer this question