Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Players = game:GetService("Players")
- 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
- --Utilitys True False--
- chattedlg1={}
- DieDetector = coroutine.create(function()
- while true do
- wait()
- Players.LocalPlayer.Character.Humanoid.Died:connect(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()
- while true do
- wait()
- Workspace.ChildRemoved:connect(function(item)
- 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)
- bubble=function(msg,parented,colurtheme)
- if(#msg>60)then
- msg=msg:sub(1,60)..'...'
- end;
- colurtheme=colurtheme or "Colur"
- a,v = ypcall(function()
- spkr=spkr or plr;
- pcall(function()spkr.Character.Bubble:remove'' probepart.Bubble:remove''end);
- local bubble=Instance.new'BillboardGui';
- bubble.Name='Bubble';
- bubble.Size=UDim2.new(0,50+(#msg*13),0,40);--UDim2.new(0,100+((#msg>7 and (#msg-7)*15)or 0),0,40);
- bubble.SizeOffset=Vector2.new(0,1.5);--#chattedlg1
- bubble.Parent=parented;
- bubble.Adornee=parented
- local frame=Instance.new('Frame',bubble);
- frame.Size=UDim2.new(1,0,1,0);
- frame.BorderSizePixel=0
- frame.BackgroundTransparency=1
- frame.ClipsDescendants = true
- local text=Instance.new('TextLabel',frame);
- text.Size=UDim2.new(1,0,1,0);
- text.BackgroundTransparency=0.5;
- text.Text=msg;
- text.FontSize='Size24';
- text.TextColor=BrickColor.new'White';
- text.Position=UDim2.new(0,0,1,0);
- for i=1, #chattedlg1 do
- chattedlg1[i].SizeOffset=chattedlg1[i].SizeOffset + Vector2.new(0,1)
- end
- table.insert(chattedlg1,bubble)
- if colurtheme=="Colur" then
- coroutine.wrap(function()
- while bubble do
- wait()
- for i = 1,top,24 do
- text.BackgroundColor3 = Color3.new(top/top,i/top,0/top)
- wait()
- end
- for i = 1,top,24 do
- text.BackgroundColor3 = Color3.new(top/top,top/top,i/top)
- wait()
- end
- for i = top,1,-24 do
- text.BackgroundColor3 = Color3.new(i/top,top/top,top/top)
- wait()
- end
- for i = top,1,-24 do
- text.BackgroundColor3 = Color3.new(0/top,i/top,top/top)
- wait()
- end
- for i = top,1,-24 do
- text.BackgroundColor3 = Color3.new(-i/top,0/top,i/top)
- wait()
- end
- end
- end)()
- elseif colurtheme=="Anger" then
- text.BackgroundColor3 = Color3.new(0,0,0)
- text.TextColor=BrickColor.new'Really red';
- end
- coroutine.wrap(function()
- text:TweenPosition(UDim2.new(0,0,0,0),'Out','Quad',0.5,true);
- wait(4);
- text:TweenPosition(UDim2.new(0,0,1,0),'Out','Quad',0.5,true);
- wait(0.5);
- bubble:remove'';
- --chattedlg1[#chattedlg1]=nil
- end)();
- return bubble
- end);
- if not a then
- print(v)
- else
- a()
- end
- end;
- plr.Chatted:connect(function(msg)
- cmdUsed=false;
- if(msg:sub(1,3)=='/e ')then msg=msg:sub(4) cmdUsed = true; end
- if(msg=="/char")then
- Spawn()
- cmdUsed=true;
- else
- for i,v in pairs(cmds)do
- if(msg:sub(1,v[2]:len())==v[2]:lower())then
- s=msg:sub(v[2]:len()+1);
- v.Fun(s);
- cmdUsed=true;
- break;
- end;
- end;
- end;
- if(cmdUsed==false)then
- local theme="Colur"
- if(msg:sub(1,3)=='/! ') then theme="Anger" msg=msg:sub(4) end
- a,b=pcall(function()
- if probemode then
- bubble(msg,probepart,theme)
- else
- bubble(msg,plr.Character.Head,theme)
- end
- end)
- if not a then
- print(b)
- else
- a()
- end
- end
- end)
- plr.CharacterAdded:connect(function()
- chattedlg1={}
- end)
- --[[Players.LocalPlayer.Chatted:connect(function(msg, plr)
- ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
- end)]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement