You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to place a surface gui on a player’s head when a gui button is pressed. -
What is the issue? Include screenshots / videos if possible!
I am clicking the enter button and the remote executes properly but does not parent the surfacegui to the player’s head -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have gone through every topic similar to this but to no avail.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("Username")
local function onReady(Username, AT)
print(AT)
local newClone = game.ReplicatedStorage.UsernameGUI:Clone()
newClone.Parent = workspace[Username].Head
end
remoteEvent.OnServerEvent:Connect(onReady)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.