Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.ChatDebounce = true
- local chatdb = _G.ChatDebounce
- local WordTable = {
- "Charlie is getting bored...",
- "Waiting for a question to be asked...",
- "Ask Charlie something, you may get the answer you desire...",
- "Ask a question, step right up!",
- "Ask your old pal Charlie anything!",
- "Ask a spoopy question, get a spoopy answer.",
- "Its so spooky, I know. Now ask a question",
- "Charlie is getting restless..."
- }
- game.Players.PlayerAdded:connect(function(plr)
- plr.CharacterAdded:connect(function(char)
- wait(1)
- local scr = game.ServerScriptService.CamScript:Clone()
- scr.Parent = plr.PlayerGui
- scr.Disabled = false
- char:Destroy()
- end)
- plr.Chatted:connect(function(msg)
- if chatdb == true and string.match(msg, "Charlie Charlie") then
- chatdb = false
- game.Workspace.ChosenChat:Play()
- game.Workspace.MessageInput.SurfaceGui.Frame.TextLabel.Text = plr.Name.." Asked: "..msg
- wait(3)
- game.Workspace.MessageInput.SurfaceGui.Frame.TextLabel.Text = "Charlie is thinking..."
- local numberz = math.random(10,360)
- wait(math.random(3,7))
- game.Workspace.MessageInput.SurfaceGui.Frame.TextLabel.Text = "Charlie is answering..."
- local sum = 0
- for x = 1,math.abs(numberz) do
- game.Workspace.SpinnyPencil.SpinnyPart.CFrame = CFrame.new(game.Workspace.SpinnyPencil.SpinnyPart.Position) * CFrame.Angles(math.rad(game.Workspace.SpinnyPencil.SpinnyPart.Rotation.X),math.rad(game.Workspace.SpinnyPencil.SpinnyPart.Rotation.Y), math.rad(game.Workspace.SpinnyPencil.SpinnyPart.Rotation.Z + 1))
- wait()
- end
- game.Workspace.MessageInput.SurfaceGui.Frame.TextLabel.Text = "Charlie has answered."
- wait(2)
- local phrase = WordTable[math.random(1,#WordTable)]
- game.Workspace.MessageInput.SurfaceGui.Frame.TextLabel.Text = phrase
- chatdb = true
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement