The error occurs one line 9, and i get the error Attempt to call a nil value, Any clues?
--Local Script
local plyr = game:GetService("Players").LocalPlayer
local mouse = plyr:GetMouse()
local part = workspace.SPart
mouse.Move:connect(function()
if mouse.Target == part then
mouse.Icon = "http://www.roblox.com/asset/?id=278931719"
if mouse.Target == part and mouse.Button1Down:connect() then
script.Parent.Parent.Shop.Frame.Visible = true
else mouse.Icon = "http://www.roblox.com/asset/?id=279471758"
end
end
end)

1 comment
'and mouse.Button1Down:connect() then' that's not how it works at all. http://wiki.roblox.com/index.php?title=Events https://scriptinghelpers.org/blog/events-the-big-engagement