#"Leaderstats is not a valid member of player "players.__"
1 messages · Page 1 of 1 (latest)
** You are now Level 3! **
you named it
speed.name = "Speed"
and your accessing "speed"
not "Speed"
case sensitive
np lol
One message removed from a suspended account.
** You are now Level 1! **
One message removed from a suspended account.
One message removed from a suspended account.
@fallow granite i have another problem
i will be uploading a video
Watch Untitled by wassilpasil and millions of other Roblox Studio videos on Medal. Tags: Roblox Studio
when i step on the part im supposed to gain 50 speed
but littaraly nothing happens
is it becaus im using a local script?
why dont you add speed on the client
thats what im trying to
which script adds speed
i will make a ss of it
k
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
yes thats what i want
will i need to put the touched event in the script where the speed gets added?
let me fix the script
ok
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
i came up with a solution in the meantime but your script might be more optimized
this is what i made
why are you using UIS in the first place
if your trying to get it upon touching the part
whats that
you can just put the whole script inside the function
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
fair enough
so this wont really work for you
the script i sent
you wanted to click the screen
yep
ofc!
yes it did
awesome
@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
ima be honest ive never scripted mobile