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

scree gui teleport script?

Asked by 10 years ago
button = script.Parent
teleport = game.Workspace.teleport


function removeGUI()
    wait(1)
    script.Parent.Parent.Vi
sible = false
    wait()
    gun = game.Lighting.LinkedPaintballGun:Clone()
    gun.Parent = button.Parent.Parent.Parent.Parent.Backpack
    :MoveTo(teleport) -- i need help on this line, how do i get the player to teleport to this brick


end

button.MouseButton1Click:connect(removeGUI)

also when i was using the command line, it said "Unable to cast Instance to Vector3" does this mean i cant use a part to teleport my character to?

0
Try removing the line breaks on lines 7 and 11 and tell what happens. gskw 1046 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Error at line 12, the script doesn't know where to move what to workspace.teleport, add on to the line game.Players.LocalPlayer.Character:MoveTo(teleport) 'Sorry if this didn't work'. I hope this helped!

0
would this only work in local script cause im using a regular script namelessassasin 30 — 10y
0
I think it would work in a Regular script too, I do hope it works if so. TheeDeathCaster 2368 — 10y
Ad

Answer this question