Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Creator = 'aceahmedmoh'
- Player = game.Players[Creator]
- Char = Player.Character
- local chat = game:GetService("Chat")
- Bet = ";"
- Orb = Instance.new("Part")
- Orb.Parent = game.Workspace
- Orb.Shape = "Ball"
- Orb.Transparency = .5
- Orb.Size = Vector3.new(1,1,1)
- Orb.Material = "SmoothPlastic"
- Orb.BottomSurface='Smooth'
- Orb.BrickColor = BrickColor.new("Really black")
- Orb.Name = "Orb"
- Orb.CanCollide = false
- local Loop = coroutine.wrap(function()
- while wait() do
- Orb.CFrame=Char.Head.CFrame*CFrame.new(-2,0,0)
- end
- end)
- Loop()
- fc = function(n)
- for i,v in pairs(game.Players:children()) do
- if v.Name:lower():sub(1,#n) == n then
- return v.Character or v.CharacterAdded:wait()
- end
- end
- end
- function onChatted(msg, plr)
- if (plr.Name == Creator) then
- chat:Chat(Orb,msg, "Blue")
- end
- if(plr.Name==Creator)then
- if(msg:lower():sub(1,1+Bet:len())=='m'..Bet:lower())then
- local rest=msg:sub(1+Bet:len()+1,#msg);
- local Msg=Instance.new('Message',workspace);
- Msg.Text=rest;
- game:service'Debris':addItem(Msg,5);
- print'a';
- elseif(msg:lower():sub(1,1+Bet:len())=='h'..Bet:lower())then
- local rest=msg:sub(1+Bet:len()+1,#msg);
- local Hint=Instance.new('Hint',workspace);
- Hint.Text=rest;
- wait(5)
- Hint:Destroy()
- print'b';
- end
- if msg:lower():sub(1,4+Bet:len()) == 'kill'..Bet:lower() then
- local tokill = fc(msg:lower():sub(4+Bet:len()+1))
- if tokill then tokill:BreakJoints() end
- elseif(msg:lower():sub(1,3+Bet:len())=='mes'..Bet:lower())then
- local rest=msg:sub(3+Bet:len()+1,#msg);
- for _,v in next, game:service'Players':players()do
- Spawn(function() -- new thread, same as coroutine.wrap shorter thou
- local MsgGUI = Instance.new("ScreenGui")
- local MsgBox = Instance.new("TextLabel")
- local FrameMsg = Instance.new("Frame")FrameMsg.Name = "FrameMsg" FrameMsg.BackgroundColor3 = Color3.new(0,0,0) FrameMsg.BorderSizePixel = 0 FrameMsg.BackgroundTransparency = 1 FrameMsg.Size = UDim2.new(10,0,10,0) FrameMsg.Position = UDim2.new(-5,0,-5,0) FrameMsg.ZIndex = 8
- MsgGUI.Parent = v:findFirstChild'PlayerGui';
- MsgBox.Parent = FrameMsg
- MsgBox.Text = rest
- MsgBox.Font = "Arial"
- MsgBox.BackgroundColor3 = Color3.new(120, 120, 120)
- MsgBox.Transparency = .5
- MsgBox.BorderColor3 = Color3.new(27, 42, 53)
- MsgBox.Size = UDim2.new(0.05, 0, 0.05, 0)
- MsgBox.Position = UDim2.new(-.25, 0, .25, 0)
- MsgBox:TweenSizeAndPosition(UDim2.new(.5, 0, .5, 0), UDim2.new(.25, 0, .25, 0), "Out", "Quad", 2);
- wait(5);--Change to fix delay
- MsgBox:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(1.5,0,.25,0),'Out','Quad',2);
- wait(2);
- MsgGUI:Destroy();
- end);--End that thread
- end;
- end
- end
- end
- Player.Chatted:connect(function(msg)
- onChatted(msg, Player)
- end)
- game.Players.PlayerAdded:connect(function(player)
- player.Chatted:connect(function(message) onChatted(message, player) end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement