why isnt this working???
hi, i was working on a teleport tool, but it dosent work fully :l ... what did i do wrong?
03 | script.Parent.Deselected:connect( function () |
05 | local me = game.Players.LocalPlayer |
06 | local char = game.Players.LocalPlayer.Character |
14 | script.Parent.Selected:connect( function (m) |
15 | m.Button 1 Down:connect( function (mouse) |
16 | if deb = = false then deb = true |
17 | local me = game.Players.LocalPlayer |
18 | local char = game.Players.LocalPlayer.Character |
19 | if char:findFirstChild( "Torso" ) and m.Target ~ = nil then |
20 | local parts = { "Right Leg" , "Left Leg" , "Torso" , "Right Arm" , "Left Arm" , "Head" } |
21 | for _,v in ipairs (parts) do |
22 | local smoke = Instance.new( "Smoke" ) |
23 | smoke.Color = BrickColor.new( "Bright blue" ).Color |
26 | smoke.RiseVelocity = 0 |
28 | local smoke 2 = Instance.new( "Smoke" ) |
29 | smoke 2. Color = BrickColor.new( "Bright blue" ).Color |
32 | smoke 2. RiseVelocity = 0 |
34 | smoke 2. Parent = char:FindFirstChild(v) |
35 | local limb = char:FindFirstChild(v) |
38 | limb.Transparency = . 5 |
41 | local h = char:findFirstChild( "Torso" ) |
42 | h.CFrame = CFrame.new(m.Hit.p) + Vector 3. new( 0 , 4 , 0 ) |
43 | local parts = { "Right Leg" , "Left Leg" , "Torso" , "Right Arm" , "Left Arm" , "Head" } |
44 | for qq,oo in ipairs (parts) do |
46 | char:FindFirstChild(oo):FindFirstChild( "Smoke" ):Destroy() |
48 | local limb = char:FindFirstChild(oo) |