Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

An Error is Preventing Me From Testing My Game. How Would I Fix It?

Asked by 4 years ago
Edited 4 years ago

Whenever I join my game, an error code pops up on the screen saying "Error 733, Attempting to teleport to a place that is restricted". It doesn't spawn me at the games lobby and keeps spawning me over the void. I have tried making the game public (It was private) and even using my alt. Nothing has worked.

Does anyone know what could be causing this? And if so how would I fix it?

Thank you.

Here are all the scripts in my game. The Mainscript:

001local ReplicatedStorage = game:GetService("ReplicatedStorage")
002 
003    local ServerStorage = game:GetService("ServerStorage")
004 
005    local MapsFolder = ServerStorage:WaitForChild("Maps")
006 
007    local Status = ReplicatedStorage:WaitForChild("Status")
008 
009    local GameLength = 600
010 
011    local reward = 1
012 
013    while true do
014 
015 
View all 122 lines...

The stats script:

01game.Players.PlayerAdded:Connect(function(player)
02 
03local leaderstats = Instance.new("Folder")
04leaderstats.Name = "leaderstats"
05leaderstats.Parent = player
06 
07local kills = Instance.new("IntValue")
08kills.Name = ("Kills")
09kills.Value = 0
10kills.Parent = leaderstats
11 
12local wins = Instance.new("IntValue")
13wins.Name = ("Wins")
14wins.Value = 0
15wins.Parent = leaderstats
16 
17 
18 
19 
20end)

And a local script I have in a text button:

1local Status = game:GetService("ReplicatedStorage"):WaitForChild("Status")
2 
3script.Parent.Text = Status.Value
4 
5Status:GetPropertyChangedSignal("Value"):Connect(function()
6 
7script.Parent.Text = Status.Value
8end)

And a kill script:

01local trapPart = script.Parent
02 
03local function onPartTouch(otherPart)
04local partParent = otherPart.Parent
05local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
06if humanoid then
07 
08    humanoid.Health = 0
09end
10end
11trapPart.Touched:Connect(onPartTouch)
0
did you use free models? it could be a virus that tried to send you to another game Dan_PanMan 227 — 4y
0
I have used two but I scanned them with SteadyOn's scanner plugin before hand to check for viruses, I'll delete them quick and see if it helps. SheepeySheeps 4 — 4y
0
I deleted all my free models and the error is still there. SheepeySheeps 4 — 4y
0
Hey, I think you should provide any scripts you believe are causing this. Clorize 31 — 4y

Answer this question