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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Need Help With Script

Previous Thread :: Next Thread 
52sogel is not online. 52sogel
Joined: 12 Nov 2011
Total Posts: 30
08 Aug 2017 09:39 PM
Hello, so I made a script that moves a tool from Replicated Storage to the player's backpack and it all works fine except that it doesn't move localscripts with the tool, but it moves everything else. Can someone help me fix it?

Here's the script-

function onClicked(playerWhoClicked)

local Backpack = playerWhoClicked.Backpack

local s = script.Parent:findFirstChild("PickUp")

game.ReplicatedStorage.Pickup:findFirstChild("Carbine"):Clone().Parent = Backpack
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("BasePart") then
v.Transparency = 1
end
end
script.Disabled = true
s:play()

wait (10)
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("BasePart") then
v.Transparency = 0
end
end
script.Disabled = false

end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
F1ctional is not online. F1ctional
Joined: 06 Apr 2017
Total Posts: 254
08 Aug 2017 10:03 PM
are the localscripts inside of the tool
Report Abuse
52sogel is not online. 52sogel
Joined: 12 Nov 2011
Total Posts: 30
08 Aug 2017 10:13 PM
Yes.
Report Abuse
Tracktion is not online. Tracktion
Joined: 06 Jun 2013
Total Posts: 1893
08 Aug 2017 10:15 PM
add this on the top script.Disabled = false


~ Almighty 全能
Report Abuse
52sogel is not online. 52sogel
Joined: 12 Nov 2011
Total Posts: 30
08 Aug 2017 10:49 PM
Didn't work.
Report Abuse
52sogel is not online. 52sogel
Joined: 12 Nov 2011
Total Posts: 30
08 Aug 2017 11:29 PM
Bump
Report Abuse
ravioli_formioli is online. ravioli_formioli
Joined: 25 Feb 2016
Total Posts: 3887
09 Aug 2017 11:30 AM
b we work on the same game
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