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

Billboard gui won't work

Asked by
Exsius 162
10 years ago

I tried using a gui script that teleports you to a specific place. It works normally with the on screen gui but when I use billboard gui's, it won't work. Here's the script

function Click()
script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-0.5, 734, 7.5)
end

script.Parent.MouseButton1Down:connect(Click)

If you have any fix please share it!

Thanks,

Exsius,

1 answer

Log in to vote
1
Answered by
TomsGames 225 Moderation Voter
10 years ago

I'm going to have a go at answering and hope I don't get loads of thumbs downs like usual.

So, it is in the player so I assume that it is a local script? If so, try changing it to this just to make it a bit better:

script.Parent.MouseButton1Down:connect(function()
game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-0.5, 734, 7.5))
end)

I changed it to :MoveTo() so that it moves the whole character, just to prevent any errors whatsoever and made it an anonymous function so that it is a shorter script so it's more neat. If this does not work then it will be an issue with the billboard gui.

But the script itself should work fine!

Ad

Answer this question