of     1   

CWRA0444
#182976991Thursday, February 04, 2016 6:19 AM GMT

No errors. Only works in test mode. Nothing happens in Play mode. can = true function click() if can == true then can = false local player = game.Players:FindFirstChild(script.Parent.Parent.Parent.Name) local mouse = player:GetMouse() if (player.Character.Torso.Position - mouse.Hit.p).magnitude < 100 then script.Parent.Parent.Handle.Blast:Play() e = Instance.new("Explosion") e.BlastRadius = 10 e.Position = mouse.Hit.p e.Parent = workspace wait(5) end can = true end end script.Parent.Parent.Activated:connect(click) just a siggy in its natural habitat
CWRA0444
#182977039Thursday, February 04, 2016 6:21 AM GMT

Please, this is actually pretty important. just a siggy in its natural habitat
MisBloxy
#182977199Thursday, February 04, 2016 6:29 AM GMT

ik! put the code in a local script. then set the player as: player = game.Players.LocalPlayer as for the mouse, do this: mouse = player:GetMouse()
cofunction
#182977215Thursday, February 04, 2016 6:29 AM GMT

Even though this might not be the best way: I usually just chuck a "wait(2)" at the start of the script which usually resolves the problem for me. #Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217")
CWRA0444
#182977339Thursday, February 04, 2016 6:35 AM GMT

@Advanced I'll try that. Thanks. just a siggy in its natural habitat
CWRA0444
#182977657Thursday, February 04, 2016 6:48 AM GMT

Didn't work :/ just a siggy in its natural habitat
CWRA0444
#182977755Thursday, February 04, 2016 6:53 AM GMT

It is not a local script by the way. Does it need to be? If so, would I need RemoteEvents for the explosion to show up for everyone? just a siggy in its natural habitat
cofunction
#182977784Thursday, February 04, 2016 6:54 AM GMT

"local player = game.Players:FindFirstChild(script.Parent.Parent.Parent.Name)" This is most likely the problem then. Just use a local script and define player as the local player local player = game.Players.LocalPlayer #Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217")
CWRA0444
#182977842Thursday, February 04, 2016 6:58 AM GMT

@Advanced Okay; but do I need to use RemoteEvents for everyone in the server to see the explosion? just a siggy in its natural habitat
cofunction
#182977855Thursday, February 04, 2016 6:59 AM GMT

CWRA0444
#182977887Thursday, February 04, 2016 7:01 AM GMT

Okay, thanks. just a siggy in its natural habitat

    of     1