local part = script.parent
part.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local plr = game:GetService("UserInputService").MouseIconEnabled
if plr then
plr = false
end
end)
local part = script.parent
part.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local plr2 = game:GetService("UserInputService").MouseIconEnabled
if plr then
plr2 = false
end
end)
local part = workspace.Part --Location of part
part.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local plr = game:GetService("UserInputService")
if plr.MouseIconEnabled then
plr.MouseIconEnabled = false
end
end)