Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- LocalScript: Place this script inside "StarterPlayerScripts" in Roblox Studio.
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local phrases = {
- "Hello, world!",
- "What's up?",
- "I'm just walking around.",
- "Jumping is fun!",
- "Roblox is awesome!",
- "Do you like pizza?",
- "Why am I saying this?",
- "Randomness is key!"
- }
- -- Function to make the player say random things
- local function sayRandomStuff()
- while true do
- wait(math.random(5, 10)) -- Random delay between 5-10 seconds
- local message = phrases[math.random(1, #phrases)]
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
- end
- end
- -- Function to make the character perform random actions
- local function randomActions()
- while true do
- wait(math.random(2, 5)) -- Random delay between actions
- local action = math.random(1, 3)
- if action == 1 then
- humanoid:MoveTo(character.Position + Vector3.new(math.random(-10, 10), 0, math.random(-10, 10)))
- elseif action == 2 then
- humanoid.Jump = true
- elseif action == 3 then
- humanoid:MoveTo(character.Position + Vector3.new(0, 0, 0)) -- Idle
- end
- end
- end
- -- Run both functions
- spawn(sayRandomStuff)
- spawn(randomActions)
Advertisement
Add Comment
Please, Sign In to add comment