Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Any help with Touched and values?

Please tell me why this won't work, I've been wondering for like a hour from now (And yes I changed the Owner value)

if hit.Name == "ActiveRocket" and script.Parent.Parent.Owner.Value == not hit.Owner.Value then
		script.Disabled = true
		hit.Name = "DeactivatedRocket"
		hit.Explosion.Enabled = true
		hit.Boom:Play()
		hit.RocketMove.Disabled = true
		hit.CollisionGroupId = 1
		hit.Anchored = true
		hit.Shockwave.Enabled = true
		hit.Transparency = 1
		wait(0.125)
		script.Parent.Spinout.Disabled = false
		hit.Shockwave.Enabled = false
		wait(0.75)
		hit.Explosion.Enabled = false
		wait(0.3)
		hit:Destroy()
		script.Disabled = false
	end

4 comments

0

What wont work?

0

When the Owner value in the car is changed to be different than the one in the rocket, it still doesn't work

0

Any error?

0

Nope

1 answer

✓ Accepted answer

not hit.Owner.Value is false (Unless Owner.Value is nil)

Fix this by using

script.Parent.Parent.Owner.Value ~= hit.Owner.Value

instead

1 comment

0

Works! Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.