Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game:GetService("Players")--Players
- LocalPlayer = Players.LocalPlayer
- ChatService = game:GetService("Chat")
- Char = Players.LocalPlayer.Character
- CloneName = "|Zyph Nil|"
- Char.Archivable = true
- Clone = Char:clone()
- Clone.Archivable = true
- Clone.Humanoid.MaxHealth = math.huge
- Clone.Humanoid.Health = math.huge
- Clone.Name = CloneName
- --Players.LocalPlayer:Destroy()
- Clone2 = Clone:clone()
- Clone2.Parent = Workspace
- Players.LocalPlayer.Character = Clone2
- Workspace.CurrentCamera.CameraSubject = Clone2.Head
- mouse = LocalPlayer:GetMouse()
- DieDetector = coroutine.create(function()
- Players.LocalPlayer.Character.Humanoid.Died:connect(function()
- pcall(function()
- Clone2 :Destroy()
- Clone2 = Clone:clone()
- Clone2.Parent = Workspace
- Players.LocalPlayer.Character = Clone2
- Workspace.CurrentCamera.CameraSubject = Clone2.Head
- end)
- end)
- end)
- RemovedDetector = coroutine.create(function()
- Workspace.ChildRemoved:connect(function(item)
- pcall(function()
- if item.Name == CloneName then
- Clone2 :Destroy()
- Clone2 = Clone:clone()
- Clone2.Parent = Workspace
- Players.LocalPlayer.Character = Clone2
- Workspace.CurrentCamera.CameraSubject = Clone2.Head
- end
- end)
- end)
- end)
- coroutine.resume(DieDetector)
- coroutine.resume(RemovedDetector)
- function process(msg, plr)
- ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
- for index, value in pairs(Commands) do
- if (msg == value.Button) then
- value.Fund()
- end
- end--?
- end --Go to anti's sb
- Players.LocalPlayer.Chatted:connect(function(chat) process(Players.LocalPlayer, chat) end)
- Commands = {};
- function OnPress(key)
- for i,v in pairs(Commands) do
- if v.Button == key then
- pcall(function() v.Func() end)
- end
- end
- end
- ---/|Commands|\---
- AddCommand = function(key,func) -- Command handler, easy inserting in the Commands table.
- table.insert(Commands,{Button=key,Func=func})
- end
- AddCommand("z",function()
- local s = Instance.new("Sound")
- s.Name = "ZyphSound"
- s.SoundId = "http://www.roblox.com/Asset/?id=148092137"
- s.Volume = 1
- s.Looped = false
- s.archivable = false
- s.Parent = game.Workspace
- wait(0)
- s:play()
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'q' then
- OnPress(key)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement