|
| 26 Sep 2015 06:19 PM |
local click = game.Workspace.Click color = game.Workspace.Color
function onClicked(playerWhoClicked) color.Rotation.X = 5 color.Rotation.Y = 5 color.Rotation.Z = 5 end click.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Sep 2015 06:42 PM |
Here use this, you need to use a Vector3 to handle the rotation. Put this script into the part that your clicking.
------ Code color = game.Workspace.Color script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked) color.Rotation = Vector3.new(5, 5, 5) print("Part was clicked by: " .. playerWhoClicked.Name) end) |
|
|
| Report Abuse |
|
|
| |
|