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

Can you help me with this player teleporter?

Asked by 5 years ago

So I have a local script that has this script

script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer()
end)

So I need to somehow fit in this script

for i = 1,#plrs do
local num = math.random(1,5)
plrs[i].Character.Head.CFrame = CFrame.new(workspace.Teleports["Part"..num].Position)
end

please help me, thanks!

0
First off, can you explain further on what you're trying to do? Secondly, it does seem like you're trying to take one script and have it do something completely different, have you made an attempt with this alternative action? M39a9am3R 3210 — 5y
0
oh, I just saw your comment, but I kind of figured it out on my own already. Basically when I was trying to teleport players, i did not make a variable for what plrs is. But thank you for trying to help me! SolidNice 0 — 5y

Answer this question