Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone please convert my filtering disabled Gui script to filtering enabled?

I want to make a simple respawn gui in filtering enabled. It's currently filtering disabled but I don't know how to convert it.

function m1down()
	script.Parent.Parent.Parent.Parent:LoadCharacter()
end

script.Parent.MouseButton1Down:connect(m1down)

So can someone help me?

Thanks.

2 comments

0

I am not going to convert it for you, but I think a youtube video could really help you out. I would check for mouse input on the local script and when there is mouse input load the character in a server script using FireEvent() and onServerEvent()

0

i am a good person , so i'll convert it!

1 answer

Make a server script Then make a remoteEvent in replicatedStorage Now put this in the code of the server script

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr)
plr:LoadCharacter() --// oops i forgot the ()! , well now its there!
end)

Now make the script of the gui to a local script and make the source be this

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

Hope it helped!

This discussion is preserved as it was. New answers, comments, and votes are closed.