Tiqar
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 325 |
|
|
| 11 May 2014 10:09 AM |
http://www.roblox.com/Unknown-place?id=24490471 I uncopylocked that game, I already have the clone thing but for some reason it won't clone my model if you're a pro scripter it should take you 2-5 minutes to fix it but I am a noob scripter and have no idea whats wrong with it. So yeah, if you fix my model clone thing I will reward you with 200 robux, if you're a NBC I think the game pass $25 robux will work and I'll buy 8 game passes from you (not sure if game pass works for nbc) |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:11 AM |
| I can tell your new here, just paste the code on here and tell us what's suppose to happen and what's not. |
|
|
| Report Abuse |
|
|
Tiqar
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 325 |
|
|
| 11 May 2014 10:17 AM |
heres script
factory = script.Parent.Parent.Parent local ting = 0 Upgradecost = script.Parent.Parent.Value.Value
function onTouched(hit) if ting == 0 then ting = 1
local h = hit.Parent:FindFirstChild("Humanoid") check = hit.Parent:FindFirstChild("Humanoid")
if check ~= nil then local user = game.Players:GetPlayerFromCharacter(hit.Parent) local stats = user:findFirstChild("leaderstats") local space = user:findFirstChild("Vehicles")
if stats ~= nil then local cash = stats:findFirstChild("Money") -- THIS IS THE THING THAT CHECKS YOUR MONEY
if cash.Value > (Upgradecost-1) then -- IF YOU CAN AFFORD THE MODEL, IT WILL SUBRACT PRICE
if space.Value == 0 then space.Value = 1 cash.Value = cash.Value - Upgradecost script.Parent.Parent.Pad1.CanCollide = true script.Parent.Parent.Pad2.CanCollide = true machine = game.Workspace.Enzo:Clone() --Edit This!! -- THE MODEL IT'S SUPPOSED TO CLONE machine.Parent = h machine:MakeJoints() msg = Instance.new("Message") msg.Parent = user:findFirstChild("PlayerGui") msg.Text = "Success! Car successfully cloned." script.Parent.BrickColor = BrickColor.new("Black") script.Parent.Transparency = 0.95 wait(1.5) script.Parent.Parent.Pad1.CanCollide = false script.Parent.Parent.Pad2.CanCollide = false script.Parent.Transparency = 0.9 wait(1.5) script.Parent.BrickColor = BrickColor.new("Bright red")
else msg = Instance.new("Message") msg.Parent = user:findFirstChild("PlayerGui") msg.Text = "You already have a car." wait(2) msg:remove() end
else msg = Instance.new("Message") msg.Parent = user:findFirstChild("PlayerGui") msg.Text = "You can't afford the car" wait(2) msg:remove() end
end end
ting = 0 end end
script.Parent.Touched:connect(onTouched
this script is supposed to clone my car when someone steps on a brick, it has a display car in front of it and a brick in front of the display car (display car does't drive), when someone steps on the brick in front of the display car, it will clone the actual car that actually drives. I stepped on the brick, it worked and it said "success!" but the car didn't clone :< it's really confusing X_X |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 May 2014 10:25 AM |
| When you set the clone's parent to "h", what does it actually lead to? |
|
|
| Report Abuse |
|
|
Tiqar
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 325 |
|
|
| 11 May 2014 10:30 AM |
| idk lol I don't even know what h is |
|
|
| Report Abuse |
|
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 10:31 AM |
| just to make sure the last thing make sure there is a ) at the end. |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:33 AM |
| So the car's parent is a humanoid? |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:34 AM |
h = hit.Parent:findFirstChild("Humanoid")
machine.Parent = h |
|
|
| Report Abuse |
|
|
Tiqar
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 325 |
|
|
| 11 May 2014 10:41 AM |
| yes, the human owns the car when you summon it |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:43 AM |
| It's parent should be factory. I have never seen a car that has a parent of a humanoid. >.< |
|
|
| Report Abuse |
|
|
Tiqar
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 325 |
|
|
| 11 May 2014 10:51 AM |
| you fixed it! can you make a game pass on your games and I'll buy the 25 robux x 8 times |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 11:02 AM |
| I already have a lot of robux. |
|
|
| Report Abuse |
|
|
Tiqar
|
  |
| Joined: 03 Jul 2008 |
| Total Posts: 325 |
|
|
| 11 May 2014 02:18 PM |
oh ok thank you for helping me anyway :D |
|
|
| Report Abuse |
|
|