Hello! After some testing and trial and error, I have come up with this script with a little help from last time. i am attempting to have a gui frame pop up when the player goes at a speed of -210 downwards. (or Y) However When I test it, this comes up in the output: 15:39:21.548 - Workspace.Player.LocalScript:3: attempt to compare two userdata values I don't quite understand this. Here is the script
s = script.Parent
while true do
if game.Players.LocalPlayer.Character:FindFirstChild("Torso").Velocity <= Vector3.new(CurrentXValue,-210,CurrentZValue) then
game.Players.LocalPlayer.PlayerGui.BlackoutGUI.Frame.Visible = true
else
game.Players.LocalPlayer.PlayerGui.BlackoutGUI.Frame.Visible = false
end
end
NOTE! i have a script that inserts this local script into the player already so all I need his help with this one.
Thank you! I hope I can get an analysis of what I am doing wrong!
~Minikitkat

1 comment
Yay! This worked!!! Thank you!