local Unique = Workspace.Unique
local URotation = Unique.Rotation
function onTouch(Unique)
Unique.Rotation = Vector3.new(15,0,0)
wait(1)
Unique.Rotation = Vector3.new(30,0,0)
wait(1)
Unique.Rotation = Vector3.new(45,0,0)
wait(1)
Unique.Rotation = Vector3.new(60,0,0)
wait(1)
Unique.Rotation = Vector3.new(75,0,0)
wait(1)
Unique.Rotation = Vector3.new(90,0,0)
wait(1)
Unique.Rotation = Vector3.new(105,0,0)
wait(1)
Unique.Rotation = Vector3.new(120,0,0)
wait(1)
Unique.Rotation = Vector3.new(135,0,0)
wait(1)
Unique.Rotation = Vector3.new(150,0,0)
wait(1)
Unique.Rotation = Vector3.new(165,0,0)
wait(1)
end
Unique.Touched:connect(onTouch)
I'm just doing this for practice. So, I'm basically just a beginner scripter, I have no idea how Vector3 works. I made this by basically patching other pieces of code together. The script is apparently supposed to make the block I touch rotate 15 degrees every second, but when I touch it, it kills me instead. Help?
Additional Info: Unique is the name of the part that I'm trying to make rotate. It's named Unique in an attempt to stop it from contradicting with any of my body parts.
Also, if you have any way of making this less tedious, please let me know.

2 comments
Although the rest of the script didn't work, I made a variable for game.Workspace.Unique.Script.parent, and used it to replace the Unique in the parenthesis, and it worked! Thanks!
No problem.