Florian27
|
  |
| Joined: 27 May 2011 |
| Total Posts: 455 |
|
|
| 27 Sep 2015 07:23 AM |
So I want it if you click a GUI, it will clone a part from ReplicatedStorage and make it go to a certain position.
my code:
s = script.Parent
s.MouseButton1Down:connect(function() game.ReplicatedStorage.Part:Clone().Parent = game.Workspace -- stuck on this line .. end)
help please?
|
|
|
| Report Abuse |
|
|
Fribet
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 700 |
|
|
| 27 Sep 2015 07:25 AM |
| Part.CFrame = CFrame.new(10,10,10) |
|
|
| Report Abuse |
|
|
Florian27
|
  |
| Joined: 27 May 2011 |
| Total Posts: 455 |
|
|
| 27 Sep 2015 08:05 AM |
| I'm afraid that doesn't work.. anyone help please? |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:06 AM |
s = script.Parent
s.MouseButton1Down:connect(function() local part = game.ReplicatedStorage.Part:Clone().Parent = game.Workspace part.CFrame = CFrame.new(1,1,1) -- position end)
chekm8 |
|
|
| Report Abuse |
|
|
Florian27
|
  |
| Joined: 27 May 2011 |
| Total Posts: 455 |
|
|
| 27 Sep 2015 08:09 AM |
| Once again, that doesn't work. |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:11 AM |
jeez ill remake it...
chekm8 |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:12 AM |
never mind i found the error..
s = script.Parent
s.MouseButton1Down:connect(function() local part = game.ReplicatedStorage.Part:Clone() part.Parent = game.Workspace part.CFrame = CFrame.new(1,1,1) -- position end)
chekm8 |
|
|
| Report Abuse |
|
|