Скрипт на санса в RobloxStudio

Tanya200404 Tanya200404    2   20.02.2021 20:47    5

Ответы
Алина15989 Алина15989  20.02.2021 20:50

wait(1)

player = game.Players.LocalPlayer

torso = player.Character:WaitForChild("Torso")

mouse = player:GetMouse()

 

mouse.KeyDown:connect(function(key)

if key == "c" then

 dist = (torso.Position - mouse.Hit.p).magnitude

 if dist <= 100 then

  torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0)

 end

end

end)

-- BurnLegion strikes again!

-- wongxd, this is why you DON'T goto Voidacity's

-- SLPM has been absent, so I've taken it upon myself to make something

 

 

       pls = game:GetService'Players'

       rs = game:GetService'RunService'

       uinps = game:GetService'UserInputService'

       lp = pls.LocalPlayer

       mouse = lp:GetMouse()

       c = lp.Character

       human = c.Humanoid

       human.MaxHealth = 50

       wait()

       human.Health = 50

       c.Health:Destroy()

ПОКАЗАТЬ ОТВЕТЫ
Другие вопросы по теме Право