Joined
·
7 Posts
basically, I'm having a problem with this script I created, and I'm using it in a game called "bubble gum simulator"
local plr = game.Players.LocalPlayer.Character.HumanoidRootPart
local sellposition = CFrame.new(-91.9134, 45.7986, -97.9536) -- intended position
repeat
plr.CFrame = sellposition
wait(2)
until game.Players.LocalPlayer.Character.HumanoidRootPart == sellposition
and the game has an anti teleporting system that teleports you back to your original position, but eventually if you keep teleporting to that intended position you will stay there and not move back to your original position, so basically, what this script does is that it keeps teleporting you to your intended position until you have reached your favorable position for about 2 seconds
(game teleports you back to your original position within 2 seconds) and for some reason, the script doesn't end, but it meant to stop the script because I have reached my position for more than 2 seconds, but the script keeps running. Someone, please help me.
local plr = game.Players.LocalPlayer.Character.HumanoidRootPart
local sellposition = CFrame.new(-91.9134, 45.7986, -97.9536) -- intended position
repeat
plr.CFrame = sellposition
wait(2)
until game.Players.LocalPlayer.Character.HumanoidRootPart == sellposition
and the game has an anti teleporting system that teleports you back to your original position, but eventually if you keep teleporting to that intended position you will stay there and not move back to your original position, so basically, what this script does is that it keeps teleporting you to your intended position until you have reached your favorable position for about 2 seconds
(game teleports you back to your original position within 2 seconds) and for some reason, the script doesn't end, but it meant to stop the script because I have reached my position for more than 2 seconds, but the script keeps running. Someone, please help me.