RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a part clickable and open a gui located in serverStorage"
-- Local Script inside the part local part = script.Parent local player = game.Players.LocalPlayer local mouse = player:GetMouse() local function onClick() local gui = game.ServerStorage:FindFirstChild("MyGui"):Clone() gui.Parent = player.PlayerGui gui.Enabled = true end mouse.Button1Down:Connect(function() if (part.Position - player.Character.HumanoidRootPart.Position).magnitude < 10 then onClick() end end)