Did you make any scripts that involve teleporting the player?
You should search for MoveTo(
(didn’t close the bracket on purpose) or Character.CFrame
or CFrame
in general.
i have a script with moveto but thats for my npcs to walk around the map.
I think I might’ve found to what specific part it teleports me to.
I know a way to check for viruses. First, open studio settings (Alt + S). Scroll down and set all of these boxes to true . Then close settings and press Ctrl + Shift + F. Now search for some specific terms such as “MoveTo” or “CFrame”. Hope this might help you find the virus script.
Screenshot by Lightshot Screenshot by Lightshot It could be this that teleports me to the part because when I add my part to test service it doesn’t spawn me there anymore.
Yes, that’s exactly the part which does so.
How could I remove it so I do not break the script.
Show me the whole script. Also, what does the script do?
it makes me view on a part what happens outside of my wall (security camera)
Can you send the script here? 30 characters
I’ve fixed it, I disabled this script Character.HumanoidRootPart.CFrame = cf(ScreenPart.Position+v3(5,0,0)) I made it --Character.HumanoidRootPart.CFrame = cf(ScreenPart.Position+v3(5,0,0)) so it doesn’t spawn me there anymore.
Good job! So everything works as usual now?
Yes, it does. Thank you for all of your help.
Pro tip: Freemodels and outsourced objects in general can have scripts in them so always make sure to check these for any extraneous code, and also viruses (and they should be the first thing to check as well if something unexpected is happening)
It wasn’t a free model. The script was made by BoatBomber.
You could use a CFrame that will teleport to the position when they join the game, here is a sample code:
local Player = game.Players.LocalPlayer
local Position = -- Position
game.Players.PlayerAdded:Connect(function()
local Humanoid = Player.Parent:FindFirstChild("Humanoid")
if Humanoid ~= nil then
Humanoid.LowerTorso.CFrame = CFrame.new(Position)
end
end
end
end)
Please mark your solution
I did it already a time ago. The one with the ALT+S reply