Am I missing something here? Or is this a studio issue.
2 Likes
Hi. I found information about your problem:
I wanted to explain it myself, however I don’t want to mess up anything :).
1 Like
That’s odd - I’ve tried typing up your code (I think exactly as you did) and I’m not getting the same error
Code
if Hit then
if Hit.Name ~= "OceanPart" and Hit.Name ~= "RampPart" and Hit ~= workspace.Terrain then
if CurrentForwardSpeed ~= StuntedForwardSpeed then
CurrentForwardSpeed = StuntedForwardSpeed
CurrentBackwardSpeed = StuntedBackwardSpeed
end
elseif Hit.Name == "OceanPart" then
Boat.Clip.BodyGyro.MaxTorque.z = 300
else
if CurrentForwardSpeed ~= ForwardSpeed then
CurrentForwardSpeed = ForwardSpeed
CurrentBackwardSpeed = BackwardSpeed
end
end
end
This is very strange.
Thanks for the help. Apparently it is a bug with Luau.
3 Likes