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

What may be making this tool's script not work? *FIGURED IT OUT*

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
tool=script.Parent
player = game.Players.LocalPlayer
mouse = player:GetMouse()

function onActivation()
     local clone = game.Lighting.Dummy:Clone()
    clone.Parent = game.Workspace

    clone.Torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0, 3, 0)
end

tool.Activated:connect(onActivation)

So when I put a part in the brick, the "Handle" of the tool, the script ended up working fine. I'm not sure why, but it works! (Will delete the question momentarily in case anyone who was helping was curious as to how it was fixed)

0
What are you asking for? funyun 958 — 8y
0
A proofread/answer as to why it isn't doing anything when I click. Let me add that Tempestatem 884 — 8y
0
It looks fine. Make sure the script isn't disabled, I've spent hours trying to fix code that didn't work because I disabled the script. Perci1 4988 — 8y
0
Would the tool not having a handle possibly do something? It is literally a tool with scripts in it? And it isn't disabled. Tempestatem 884 — 8y

Answer this question