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

Help? Please tell me the errors?

Asked by 9 years ago

Code: For the Character.Torso, It didn't work.

Mouse = game.Players.LocalPlayer:GetMouse()
Player = game.Players.LocalPlayer
Character = Player.Character
Torso = Character.Torso
Part = game.Workspace.Part
Part.Anchored = true


Mouse.KeyDown:connect(function(key)
    key = key:lower()
    if key == "f" then
        for i = 1, 10 do
            wait(0.000000001)
                Part.Size = Part.Size + Vector3.new(1,1,1)
            Part.Position = Part.Position + Vector3.new(0,2,0)      



        end
while true do
    wait(0.00001)
    Part.CFrame = Part.CFrame * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)

end

end
end)
Mouse.KeyDown:connect(function(key)
    key = key:lower()
    if key == "g" then
        for i = 1,10 do
                wait(0.000000001)
                Part.Size = Part.Size - Vector3.new(1,1,1)
                Part.Position = Part.Position - Vector3.new(0,1,0)

        end
    end

end)


Mouse.KeyDown:connect(function(key)
    key = key:lower()
    if key == "e" then
        local fire = Instance.new("Fire",Part)
            fire.Size = 50
            fire.Heat = 50



end
end)

Mouse.KeyDown:connect(function(key)
    key = key:lower()
    if key == "t" then
        local Bv = Instance.new("BodyVelocity")
        Bv.Parent = Part
        Bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
        Bv.velocity = Character.Torso.CFrame.lookVector * 100
    end
end)

2
We can't tell you the error, you have to tell us the error. Online, press F9 and go to Server Console, tell us any errors with the script there. Studio, open output and tell us the error coming from the script. M39a9am3R 3210 — 9y

1 answer

Log in to vote
-3
Answered by 9 years ago

Mouse = game.Players.LocalPlayer:GetMouse() 02 Player = game.Players.LocalPlayer 03 Character = Player.Character 04 Torso = Character.Torso 05 Part = game.Workspace.Part 06 Part.Anchored = true 07

08

09 Mouse.KeyDown:connect(function(key) 10 key = key:lower() 11 if key == "f" then 12 for i = 1, 10 do 13 wait(0.000000001) 14 Part.Size = Part.Size + Vector3.new(1,1,1) 15 Part.Position = Part.Position = Vector3.new(0,2,0)
16

17

18

19 end 20 while true do 21 wait(0.00001) 22 Part.CFrame = Part.CFrame * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5) 23

24 end 25

26 end 27 end) 28 Mouse.KeyDown:connect(function(key) 29 key = key:lower() 30 if key == "g" then 31 for i = 1,10 do 32 wait(0.000000001) 33 Part.Size = Part.Size - Vector3.new(1,1,1) 34 Part.Position = Part.Position - Vector3.new(0,1,0) 35

36 end 37 end 38

39 end) 40

41

42 Mouse.KeyDown=connect(function(key) 43 key = key:lower() 44 if key == "e" then 45 local fire = Instance.new("Fire",Part) 46 fire.Size = 50 47 fire.Heat = 50 48

49

50

51 end 52 end)



Ad

Answer this question