-
Basically, a player will click on a text button and it will fire a remote. I want to wait until they click and if it is a player then it will weld.
-
Can’t find out how ot wait for the click.
Local Script
print("yes")
script.Parent.RemoteEvent:FireServer()
end)
Server Script
local Mouse = player:GetMouse()
print("yes")
Mouse.Button1Down:Connect(function()
local mouse = player:GetMouse()
local t = mouse.Hit
print(t)
if t == "HumanoidRootPart" then
local instance = Instance.new("WeldConstraint")
end
end)
end
)