RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"write me a gui for my executor where i change my speed value nad i can hit players farther"
Sure, here's a basic example of how you could create a GUI for changing the player's speed and hit distance. Firstly, you will need to create a ScreenGui in the StarterGui. Inside the ScreenGui, create two TextButtons (one for changing speed and one for changing hit distance) and two TextBoxes (to input the desired speed and hit distance). The structure should look like this: - StarterGui - ScreenGui - SpeedButton - SpeedBox - HitButton - HitBox Here is the script for the GUI: ```lua -- local script local player = game.Players.LocalPlayer local gui = player.PlayerGui.ScreenGui local speedButton = gui.SpeedButton local speedBox = gui.SpeedBox local hitButton = gui.HitButton local hitBox = gui.HitBox -- Function to change speed local function changeSpeed() local newSpeed = tonumber(speedBox.Text) if newSpeed then player.Character.Humanoid.WalkSpeed = newSpeed end end -- Function to change hit distance local function changeHitDistance() local newDistance = tonumber(hitBox.Text) if newDistance then -- You will need to implement this function based on how your hit system works -- This is just a placeholder changeHitSystemDistance(newDistance) end end speedButton.MouseButton1Click:Connect(changeSpeed) hitButton.MouseButton1Click:Connect(changeHitDistance) ``` Please replace `changeHitSystemDistance(newDistance)` with your own function for changing the hit distance, as this will depend on how your hit system is implemented.