of     1   

Wulfx
#227687763Saturday, November 18, 2017 11:00 PM GMT

brick = script.Parent wait() function onClicked(hit) local ply = hit.Character ply.Humanoid.Health = ply.Humanoid.Health - 50 ply.RightArm.Color = Color3.new("Cocoa") ply.RightArm.Material = "Granite" local blood = game.ReplicatedStorage.artery:Clone() blood.Parent = ply blood.Position = ply.RightArm.Position end script.Parent.ClickDetector.MouseClick:connect(onClicked)
musickman14
#227687902Saturday, November 18, 2017 11:02 PM GMT

the error will guide you the way of enlightenment
Hereticism
#227687987Saturday, November 18, 2017 11:04 PM GMT

I'd guess `local ply = hit.Character` I believe you mean `local ply = game:GetService('Players'):GetPlayerFromCharacter(hit.Character)`
Laedere
#227688371Saturday, November 18, 2017 11:09 PM GMT

^ Don't suggest things without knowing what they do the hit argument in the MouseClick event already provides player as an argument, so hit.Character is acceptable.
Wulfx
#227688462Saturday, November 18, 2017 11:11 PM GMT

i keep getting Right arm is not a valid member of member of model. its supposed to turn the players arm red and granite, and add a bleeding effect
Laedere
#227688508Saturday, November 18, 2017 11:12 PM GMT

It's "Right Arm" with a space
Wulfx
#227688720Saturday, November 18, 2017 11:15 PM GMT

Now it says expected = near Arm, I thought the names of objects couldn't have spaces? idk im a really beginner scripter.
Laedere
#227688822Saturday, November 18, 2017 11:17 PM GMT

You can have spaces if they're surrounded by brackets. Like this: local RightArm = ply["Right Arm"]

    of     1