|
| 17 Aug 2015 09:32 AM |
o im tryng to mke it so when i click on the button in my gui it spawns it aboe my character ive got it to spawn before but not above my head so i revamped and it dosent work at all now heres the script
PropChair = game.Lighting.Chair:Clone() player = game.Players:FindFirstChild("Humanoid")
function onClicked() while true do PropChair = game.Lightning.Chair:Clone() wait(2) PropChair.Parent = game.Workspace PropChair:MoveTo(player.Position + Vector3.new(0,2,0)) PropChair:MakeJoints() end end script.Parent.MouseButton1Down:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 09:46 AM |
| Thisisi not a place for help requests |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Aug 2015 10:13 AM |
function onClicked() player = game.Players.LocalPlayer character = player.Character torso = character.Tors PropChair = game.Lightning.Chair:Clone() wait(2) PropChair.Parent = game.Workspace PropChair:MoveTo(torso.Position + Vector3.new(0,2,0)) PropChair:MakeJoints() end script.Parent.MouseButton1Down:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 11:55 AM |
| Glacier thanks but this isnt working? ive tried adding local to the varibles and mving them out of function but still does not work?? |
|
|
| Report Abuse |
|
|
71428
|
  |
| Joined: 06 Aug 2015 |
| Total Posts: 339 |
|
|
| 17 Aug 2015 12:05 PM |
player = game.Players.LocalPlayer
function onClicked() local PropChair = game.Lighting.Chair:Clone() PropChair.Parent = game.Workspace while true do wait() PropChair:MoveTo(player.Position + Vector3.new(0,2,0)) PropChair:MakeJoints() end end
script.Parent.MouseButton1Down:connect(onClicked)
If this doesn't work what are the errors? What happens and what doesn't? Also please do not use Lighting for storage. Use SeverStorage instead. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 01:07 PM |
| Works But spawn it like it did before just in the workspace in a specific location anyway ito fix this? |
|
|
| Report Abuse |
|
|