So I'm making this game for fun and I'm trying to make it so when you achieve a certain rank, the game will speed you up. I've tried a couple of places to put this script but I don't know where to do this and how to speed the character up!
(This script ranks the character, and is located in StarterPlayerScripts)
local plr = script.Parent.Parent
local novice = ("Novice")
local exp = ("Expert")
local chgo = ("God Chez")
local loch = ("Lord Chez")
while true do
wait(0.1)
if plr.leaderstats.Cheeses.Value == 10 then
plr.leaderstats.Rank.Value = novice
end
if plr.leaderstats.Cheeses.Value == 50 then
plr.leaderstats.Rank.Value = exp
end
if plr.leaderstats.Cheeses.Value == 100 then
plr.leaderstats.Rank.Value = chgo
end
if plr.leaderstats.Cheeses.Value == 500 then
plr.leaderstats.Rank.Value = loch
end
end
Is there a way I can take the player and find it's character? I know how to change WalkSpeed, but I don't know how to get the Player's character to do so.
