#"Leaderstats is not a valid member of player "players.__"

1 messages · Page 1 of 1 (latest)

tiny sierra
#

Someone please help this is so weird

echo galleonBOT
#

studio** You are now Level 3! **studio

fallow granite
#

you named it

#

and your accessing "speed"

#

not "Speed"

#

case sensitive

tiny sierra
#

no way im that stupid

#

tysm

fallow granite
#

np lol

edgy token
#

One message removed from a suspended account.

echo galleonBOT
#

studio** You are now Level 1! **studio

edgy token
#

One message removed from a suspended account.

fallow granite
#

brochacgo

edgy token
#

One message removed from a suspended account.

tiny sierra
#

@fallow granite i have another problem

#

i will be uploading a video

#

when i step on the part im supposed to gain 50 speed

#

but littaraly nothing happens

#

is it becaus im using a local script?

fallow granite
tiny sierra
#

thats what im trying to

fallow granite
tiny sierra
#

i will make a ss of it

fallow granite
#

k

tiny sierra
fallow granite
#

wait

#

when you steop on a part your trying to add speed?

#

is that what you want

#

because thats not what that script is doing

tiny sierra
#

yes thats what i want

#

will i need to put the touched event in the script where the speed gets added?

fallow granite
#

let me fix the script

tiny sierra
#

ok

fallow granite
#
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local GiveSpeed = game.ReplicatedStorage.SpeedCounter

local SpeedPart = workspace:WaitForChild("YourPartName") -- just add you thingy part directory thingy here 

SpeedPart.Touched:Connect(function(hit)
    local character = LocalPlayer.Character
    if character and hit:IsDescendantOf(character) then
        local humanoid = character:FindFirstChildOfClass("Humanoid")
        if humanoid then
            humanoid.WalkSpeed += 1
            print("New WalkSpeed:", humanoid.WalkSpeed)
            GiveSpeed:FireServer()
        end
    end
end) 
#

this might not work but we shall see

tiny sierra
#

i came up with a solution in the meantime but your script might be more optimized

#

this is what i made

fallow granite
#

why are you using UIS in the first place

tiny sierra
fallow granite
#

if your trying to get it upon touching the part

tiny sierra
fallow granite
#

you can just put the whole script inside the function

fallow granite
#

my bad

tiny sierra
#

oh

#

because

#

the part is for an extra 50 speed so you dont have to click the screen for 50 times

#

its a weird idea but im just making this game for learning

fallow granite
#

fair enough

#

so this wont really work for you

#

the script i sent

#

you wanted to click the screen

tiny sierra
#

yep

fallow granite
#

didnt realise that

#

but you have the idea down

#

i suppose

tiny sierra
#

np but again ty for trying to help

#

yes

fallow granite
#

no worries

#

goodluck

#

and if you have any questions ping me

tiny sierra
#

ofc!

fallow granite
#

i assume so

#

right

tiny sierra
#

yes it did

fallow granite
#

awesome

tiny sierra
#

@fallow granite would this line work?

#

if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then

#

im trying to make it compatible for mobile

fallow granite
#

ima be honest ive never scripted mobile

tiny sierra
#

turned out it didnt work but "Touch" is for mobile so there should be someway

#

might need to make a new function

little path
#

just do WaitForChild bro

#

ah

#

nvm

#

but no

#

still do waitforchild

#

wait no