I am in need of some help for a game I am releasing soon with Beast Games. It is some very bare basic code for a simple jump obby with no killparts or anything. It is an anchored part with a .Touched event connected to it. There are 5 scripts (not including DataStore2).
script.Parent.Ground.Touched:Connect(function(hit) print("Ground touched.") local plr = game.Players:GetPlayerFromCharacter(hit.Parent) if (plr ~= nil) then print("Player is not nil") plr.Character:SetPrimaryPartCFrame(game.Workspace.Elevator.TeleportPart.CFrame) end end)
This is what happens:
The line before the
plr variable is defined, the print statement is printed at the same exact time it prints Player is not nil
I can go on the platform and move around, but as soon as I stop it prints both of them. (could be a roblox bug )
Here is a gif showing it.
You can slow it down if you want.
(I am not sure why, but it does not embed when I click Upload)