So I have an answer to my needs, but I don't know how to input it into the script without breaking my game! Here is what I have!
while true do wait(10) local m = math.random(1,1) there are local player = game.Players:GetPlayers() for i = 1, #player do --This checks for players and gets them msg = Instance.new("Message") --This make the annoying messages that appear on you screen msg.Parent = nil --This identifies the game if m == 1 then --don't change unless you know what you are doing msg.Parent = game.Workspace msg.Text = "Disast Air flight 1337 has Landed!" wait(5) msg.Text = "Boarding starts in..." wait(1) msg.Text = "...3..." wait(1) msg.Text = "..2.." wait(1) msg.Text = ".1." wait(1) msg.Text = "Please board the Aircraft!" wait(1) player[i].Character:MoveTo(Vector3.new()) --WHERE I NEED THE SCRIPT EDITED msg:remove() game.Lighting.Minigame1:clone().Parent = game.Workspace wait(30) game.Workspace.Minigame1.TerminalPlane:remove() game.Workspace.Minigame1.OneWayTeleportPad:remove() wait(90) --How long the game lasts msg.Parent = game.Workspace msg.Text = "Disastair Flight 1337 never arrived at it's destination..." wait(5) msg:remove() game.Workspace.Minigame1:Remove() end
So here I have an adapted version of the LionSaysRoar Minigame Script, changed to suit my needs! However, I need it so that the character doesn't teleport to where the 'obby' begins, but leaves them in their current position!
I was given this by Merely however
local character = player[i].Character local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") if humanoidRootPart then character:MoveTo(humanoidRootPart.Position) else -- the player probably just died and his character got deleted end
So now I need to know how to add it to the main script!
Thanks in advance,
Michael H!
If you simply want to leave the character in its position and not teleport/move it at all, remove line 23 from your script.