I have created a dab script (for a meme club house.) It works in roblox studio so I decided to show it to the owner of it. It didn't work so I checked the error log. There was nothing.
01 | local Mouse |
02 | local d = 0 |
03 | function onClick() |
04 | if d = = 0 then |
05 | d = 1 |
06 | local dab = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.Animation) |
07 | dab:Play() |
08 | wait( 1.5 ) |
09 | print "done" |
10 | d = 0 |
11 | end |
12 | end |
13 |
14 | function onEquip(a) |
15 | if Mouse = = nil then |
On line 17 it would be:
1 | MouseButton 1 Down:connect(onClick) |
If Mouse was a gui button it would be:
1 | local button = script.Parent |
2 |
3 | button.MouseButton 1 Down:connect( function () |
4 | -- code here |
5 | end ) |
So it's not Mouse.Button1Down
instead it's MouseButton1Down
.
I don't think that fixes it but it's worth a try.