generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: putting ReplicatedStorage clone part to a position.

Previous Thread :: Next Thread 
Florian27 is not online. 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 is not online. Fribet
Joined: 08 Feb 2014
Total Posts: 700
27 Sep 2015 07:25 AM
Part.CFrame = CFrame.new(10,10,10)
Report Abuse
Florian27 is not online. 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
AdvancedDrone is online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
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 is not online. Florian27
Joined: 27 May 2011
Total Posts: 455
27 Sep 2015 08:09 AM
Once again, that doesn't work.
Report Abuse
AdvancedDrone is online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
27 Sep 2015 08:11 AM
jeez ill remake it...



chekm8
Report Abuse
AdvancedDrone is online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image