#How can I make script that..
74 messages · Page 1 of 1 (latest)
What you mean?
like
per 1 second
we get 1 speed
users gain 1 speed every seconds
yk
@keen oyster
Can u explain it more ?
Is it a leaderstat or do you mean their actual walk speed?
@eternal crypt
actual walk speed
Will it always be only changed by one or will it be more later?
wdym
how
do you have any knowledge of scripting?
nah
usually you make a thread to get help with your script, not to get people to script for you
i recommend you learn how to do it yourself, and if you get stuck get help from others that way you can learn how it works and all that stuff
nah
well im sorry, im not going to write you code
nah
Like will it always be +1 speed or will it be upgraded to +5 or something
@eternal crypt
while true do
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
player.speed += 1
wait(1)
end```
does it keep loop
like
until we leave the game
while task.wait(1) do
player.speed +=1
end
let me try this one
where should I put this
is it local script
Game.players.PlayerAdded:connect(function(player)
Local character = player.Character or Player.CharacterAdded
Local Humanoid = character:WaitForChild(“Humanoid”)
While true so
Humanoid.WalkSpeed = Humanoid.WalkSpeed + 1
Wait(1)
end
end)
both could do
Might be some capitalization errors
Not if he want to save it
he can use a second script to save it
let me try this one
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
while task.wait(1)
char.Humanoid.WalkSpeed+=1
end
end)
end)
server
Local script only changes it on the client
No use a normal script
You need to add some stuff but that should work, it might have capitalization errors
one sec
it doesnt work
What’s the output
one sec
ServerScriptService.Script:3: Incomplete statement: expected assignment or a function call
ah
wait
you wrote local with capital letter
let me try again
@keen oyster
players is not a valid member of DataModel "Game"
game.players.PlayerAdded:connect(function(player)
local character = player.Character or Player.CharacterAdded
local Humanoid = character:WaitForChild('Humanoid')
while true do
Humanoid.WalkSpeed = Humanoid.WalkSpeed + 1
Wait(1)
end
end)
its game.Players
services all start with capital letter
for example game.Workspace
Yeah I typed it on a phone so it capitalizes on its own
Does it work?
@eternal crypt