Heya, I am trying to do a script for a different ( slower ) walk speed on smooth grass terrain, but for whatever reason it is not working... Can anybody lighten up my 'tunnel' on this case? I am at quite a loss.

local humanoid 

humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()

print(humanoid.FloorMaterial)
if humanoid.FloorMaterial.Grass = true
then 
local player = game.Players.LocalPlayer
local char = player.CharacterAdded:wait()
local h = char.Humanoid
 
h.WalkSpeed = 13
end

I thank you all in advance.

2 comments

0

Is this a localScript or a serverScript? also in that case why doesn't the Humanoid local have a designation?

0

yeah, I am a beginner at scripting so i am quite clueless on what I am doing.... But thanks for notifying me that I need a local humanoid text. also it is a local script