gpt-4o-2024-08-06· OpenAI WildChat-4.8M (AI2)
Write a Roblox script that will make my character run really fast and jump really high.
- User
Write a Roblox script that will make my character run really fast and jump really high.
- Assistant
To create a script that makes your character run faster and jump higher in Roblox, you can use a LocalScript. This script will modify the
WalkSpeedandJumpPowerproperties of the player's character. You should place this LocalScript insideStarterPlayerScriptsorStarterCharacterScripts.Here's a simple example:
-- LocalScript local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() -- Wait until Humanoid is available local humanoid = character:WaitForChild("Humanoid") -- Set new walk speed and jump power local superSpeed = 100 -- Adjust this value to set desired speed local superJump = 150 -- Adjust this value to set desired jump height -- Change character properties humanoid.WalkSpeed = superSpeed humanoid.JumpPower = superJump -- Optional: Reset to default values on respawn player.CharacterAdded:Connect(function(newCharacter) humanoid = newCharacter:WaitForChild("Humanoid") humanoid.WalkSpeed = superSpeed humanoid.JumpPower = superJump end)Instructions:
- Open your Roblox Studio.
- Insert a LocalScript: Go to
StarterPlayer>StarterPlayerScriptsorStarterCharacterScripts, and insert a LocalScript. - Copy and Paste the Above Code: Paste the script into the LocalScript.
- Customize the Values: Modify the
superSpeedandsuperJumpvariables to suit the speed and jump height you desire.
Things to Note:
WalkSpeedDefault Value: The default walk speed in Roblox is usually around 16.JumpPowerDefault Value: The default jump power for a character is typically 50.- Balance Considerations: Setting these values too high can cause issues with gameplay balance or even breaking infrastructure if your game world is not prepared for such extreme movements.
Remember to test the script in your game to ensure it behaves as expected. Adjust the
superSpeedandsuperJumpvalues according to your preferences.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.