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

Roblox keeps complaining about my script. is it correct? I need to know! (Solved)

The script. Please help if you can!

wait() Player = game.Players.LocalPlayer Character = Player.Character RightArm = Character("Right Arm") Enabled = true mouse = Player:GetMouse()

mouse.Button1Down:connect(funtion() if not Enabled then return end Enabled = false local target = mouse.target if target then if target.ClassName == "Part" then local Rope = Instance.new("RopeConstraint", target) local Attach1 = Instance.new("Attachment", target) local Attach2 = Instance.new("Attachment", RightArm) Rope.Attachment0 = Attach2 Rope.Attachment1 = Attach1 wait(0.1) Rope.BrickColor = BrickColor.new("Institutional white") Rope.Visable = true end end wait(0.5) Enabled = true end)

4 comments

0

code block

0

what is that

0

is says Unexpected ')' (to close '(' at line 8) got 'if'

0

I cant even read that

1 answer

✓ Accepted answer

You have made a mistake here:

mouse.Button1Down:connect(funtion()

Change funtion to function and it should be fixed.

2 comments

0

thanks

0

No problem!

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