-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRegenAttach.lua
More file actions
24 lines (24 loc) · 852 Bytes
/
RegenAttach.lua
File metadata and controls
24 lines (24 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- Script that attaches to the admin reset (regen) part.
local p = game:GetService("Players")
local lplr = p.LocalPlayer
local function chat(msg)
p:Chat(msg)
end
local part = workspace.Terrain._Game.Admin.Regen
local looping = true
local cf = lplr.Character.HumanoidRootPart
chat("hello my name is regen moverrrrrrrrrr11!")
chat("yor bal")
coroutine.wrap(function()
while true do
lplr.Character:FindFirstChildOfClass("Humanoid"):ChangeState(11)
part.RotVelocity = Vector3.new(0,0,0)
part.Velocity = Vector3.new(0,0,0)
cf.CFrame = part.CFrame * CFrame.new(-1*(part.Size.X/2)-(lplr.Character.Torso.Size.X/2), 0, 0)
if not looping then break end
task.wait()
end
end)()
coroutine.wrap(function() while looping do chat('unpunish me '..tostring(math.random(10,1024)) task.wait() end end)()
task.wait(1)
looping = false