Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Part = Instance.new('Part')
- local Player = game:GetService('Players')
- local Players = Player:GetChildren ()
- local Pick = 0
- local Roll = function ()
- Pick = math.random(1,#Players)
- end
- local FadeOut = function ()
- Part.Transparency =10
- wait(0.5)
- Part.Transparency =9
- wait(0.5)
- Part.Transparency =8
- wait(0.5)
- Part.Transparency =7
- wait(0.5)
- Part.Transparency =6
- wait(0.5)
- Part.Transparency =5
- wait(0.5)
- Part.Transparency =4
- wait(0.5)
- Part.Transparency =3
- wait(0.5)
- Part.Transparency =2
- wait(0.5)
- Part.Transparency =1
- wait(0.5)
- Part.Transparency =0
- end
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.K then
- Part.Color = Color3.fromRGB(255, 0, 0)
- Part.Material = 'Neon'
- Part.Size=Vector3.new(10,10,10)
- Roll()
- local FindPlayer = game.Workspace:WaitForChild(Players[Pick].Name)
- if FindPlayer.Name == 'sprite21112' then
- return
- end
- local Head = FindPlayer:WaitForChild ("Head")
- Part.Position = Vector3.new(Head.Position.X,Head.Position.Y,Head.Position.Z)
- FindPlayer:BreakJoints ()
- FindPlayer:Destroy ()
- FadeOut()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment