Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CreateChar(pl)
- local ch = pl.Character
- pl.Character = nil
- ch.Parent = nil
- local m = Instance.new("Model",game:GetService("Workspace"))
- m.Name = pl.Name
- local p = Instance.new("Part",m)
- p.FormFactor = Enum.FormFactor.Symmetric
- p.Anchored = true
- p.Size = Vector3.new(1,1,1)
- p.Shape = "Ball"
- p.Name = "Head"
- local hum = Instance.new("Humanoid",m)
- hum.MaxHealth = 0
- local cam = game.Workspace.CurrentCamera
- pl.Chatted:connect(function(msg)
- Chat(p,msg)
- end)
- coroutine.resume(coroutine.create(function()
- while wait() do
- p.CFrame = cam.CoordinateFrame * CFrame.new(0,0,-10)
- end
- end))
- return m
- end
- function Chat(part,msg)
- game:GetService("Chat"):Chat(part,msg,Enum.ChatColor.Green)
- end
- player = game.Players.LocalPlayer
- player.Parent = nil
- char = CreateChar(player)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement