claude-3-7-sonnet-20250219-thinking-32k· Anthropic LMArena Human Preference 140K
make me a walkspeed scrtipt instead
- User
make me a walkspeed scrtipt instead
- Assistant
Sure, here's a simple walkspeed script for testing your anti-cheat:
-- Basic Walkspeed Modifier Script -- For anti-cheat testing purposes only local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local speedValue = 50 -- Modify this value to change speed (default: 16) local enabled = true -- Function to update walkspeed local function updateWalkspeed() local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") if enabled then humanoid.WalkSpeed = speedValue else humanoid.WalkSpeed = 16 -- Reset to default end end -- Toggle script with Left Shift key UserInputService.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed then if input.KeyCode == Enum.KeyCode.LeftShift then enabled = not enabled updateWalkspeed() elseif input.KeyCode == Enum.KeyCode.Up then -- Increase speed with Up arrow speedValue = speedValue + 5 updateWalkspeed() elseif input.KeyCode == Enum.KeyCode.Down then -- Decrease speed with Down arrow speedValue = math.max(1, speedValue - 5) updateWalkspeed() end end end) -- Ensure walkspeed persists after character respawns player.CharacterAdded:Connect(function(char) if enabled then local humanoid = char:WaitForChild("Humanoid") humanoid.WalkSpeed = speedValue end end) -- Apply walkspeed immediately updateWalkspeed() -- Optional: Create a simple UI to show current speed local screenGui = Instance.new("ScreenGui") screenGui.Name = "SpeedHackGui" screenGui.Parent = player.PlayerGui local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 150, 0, 50) frame.Position = UDim2.new(0.85, 0, 0.1, 0) frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) frame.BackgroundTransparency = 0.5 frame.BorderSizePixel = 0 frame.Parent = screenGui local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 label.TextColor3 = Color3.fromRGB(255, 255, 255) label.TextScaled = true label.Parent = frame -- Update the UI RunService.RenderStepped:Connect(function() label.Text = "Speed: " .. (enabled and speedValue or 16) end) -- Print instructions to console print("Walkspeed Script Active") print("Left Shift: Toggle speed hack") print("Up Arrow: Increase speed") print("Down Arrow: Decrease speed")This script allows you to:
- Set a custom walkspeed (default is 50, normal is 16)
- Toggle the speed hack on/off with Left Shift
- Increase speed with Up Arrow
- Decrease speed with Down Arrow
- See your current speed with a small UI element
- Maintain the speed setting even after your character respawns
It should work well for testing your anti-cheat's ability to detect walkspeed modifications. The script directly modifies the Humanoid.WalkSpeed property, which is one of the most common ways speed hacks are implemented.
Would you like me to explain or break down the code?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.