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

How to use a tool in Roblox Studio? HELP PLEASE

Asked by 10 years ago

I Put the tool in the starter pack and I wanted to make the Local script only work when the tool is selected. The local script I have is for a wave of water. What Do I have to do add a Handle?

01local enabled = true
02Player = script.Parent.Parent
03--Player:WaitForDataReady()
04mouse = Player:GetMouse()
05run = game:GetService("RunService")
06function onKeyDown(key)
07if not enabled then return end
08enabled = false
09    Key = key:lower()
10    if key == "x" then
11        RightShoulder = Player.Character.Torso["Right Shoulder"]
12        LeftShoulder = Player.Character.Torso["Left Shoulder"]
13        Run = game:GetService("RunService")
14        for i = 1, 2 do
15            for i = 1, 12 do
View all 73 lines...
0
You can't use a tool in Roblox studio because you do not have a character. Perci1 4988 — 10y

Answer this question