#Yo. Help me make a play button script :D
10 messages · Page 1 of 1 (latest)
Oh ye hang on lemme check
local PlayFrame = PlayButton.Parent
function onClick()
PlayFrame.BackgroundTransparency = 1
PlayButton.BackgroundTransparency = 1
PlayButton.TextTransparency = 1
end
PlayButton.MouseButton1Click:connect(onClick)```
** You are now Level 1! **
@topaz totem therre u go
So do you want the player to spawn into the map or smth?
well yeah I want the player to spawn to the lobby spawn
Just do
repeat wait() until gamw.Players.LocalPlayer.Character
local char = game.Players.LocalPlayer.Character
--In the onClick function
char.HumanoidRootPart.CFrame = CFrame.new(ur position here)
alternately in the onClick function u can do
char.Humanoid:MoveTo(ur position)
tell me if any problems occurs or it didnt work
the "ur position" is the position of ur wantrd spawn point