I want to do the next thing. When you have "Objects" (Stat) in value = 5 ,you need to be teleported, i use the next script,but it doesnt works. Whats the problem?
Position=Vector3.new(-46.078, 5.046, -1105.82)
objects.Changed:Connect(function()
if objects.Value == 5 then
local objects = Instance.new("IntValue", stats)
FindFirstChild("Humanoid") then
Torso.CFrame=CFrame.new(Position)
end
end)

2 comments
Thanks!,I will test it later ^^
The parent argument to Instance.new is deprecated and slows down game performance.