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

How do I make a brick on enter thingy?

1 answer

local Mouse = game.Players.LocalPlayer:GetMouse()
local Gui   = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("GuiNameHere")
local Brick = game["Workspace"]:WaitForChild("Brick")

Mouse.Move:connect(function()
if Mouse.Target == Brick then
Gui.Visible = true Gui.Position = UDim2.new(Mouse.X,0,Mouse.Y,0)
--[[
else
Gui.Visible = false
--]]
	end
end)

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