Jacobi00
|
  |
| Joined: 23 May 2011 |
| Total Posts: 21 |
|
|
| 18 May 2013 02:39 PM |
| I need help knowing how to script, can anyone help please? |
|
|
| Report Abuse |
|
|
bob354293
|
  |
| Joined: 26 Oct 2008 |
| Total Posts: 2609 |
|
|
| 18 May 2013 02:41 PM |
I know how to script...
Ill send you some scripts im doing as we speak....
But i wont teach you...
You must learn what they do....
function Click() if script.Parent.Parent.CarChoice.Value == 1 and script.Parent.Parent.Parent.Parent.Parent.leaderstats.Cash.Value >= 5000 then script.Parent.Parent.Parent.Parent.Parent.leaderstats.Cash.Value = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Cash.Value - 5000 local hover = game.Lighting.Camero:clone() -- car name here hover.Parent = game.Workspace hover:MakeJoints() local player = game.Players.LocalPlayer local torso = player.Character.Torso hover:MoveTo(torso.Position + torso.CFrame.lookVector*10) hover.Parent = game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Parent.Name) if script.Parent.Parent.Parent.VehicleFrame.Slot.Value == 1 then script.Parent.Parent.Parent.VehicleFrame.Slot1.WhatCar.Value = 1 script.Parent.Parent.Parent.CarPreviewFrame.Visible = false script.Parent.Parent.Parent.BuyVehicleFrame.Visible = false script.Parent.Parent.Parent.VehicleFrame.Slot1.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) script.Parent.Parent.Parent.VehicleFrame.Slot2.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) elseif script.Parent.Parent.Parent.VehicleFrame.Slot.Value == 2 then script.Parent.Parent.Parent.VehicleFrame.Slot1.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) script.Parent.Parent.Parent.VehicleFrame.Slot2.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) script.Parent.Parent.Parent.VehicleFrame.Slot2.WhatCar.Value = 1 script.Parent.Parent.Parent.CarPreviewFrame.Visible = false script.Parent.Parent.Parent.BuyVehicleFrame.Visible = false else end ------------------------------ elseif script.Parent.Parent.CarChoice.Value == 2 and script.Parent.Parent.Parent.Parent.Parent.leaderstats.Cash.Value >= 100000 then script.Parent.Parent.Parent.Parent.Parent.leaderstats.Cash.Value = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Cash.Value - 100000 local hover = game.Lighting.Lambo:clone() -- car name here hover.Parent = game.Workspace hover:MakeJoints() local player = game.Players.LocalPlayer local torso = player.Character.Torso hover:MoveTo(torso.Position + torso.CFrame.lookVector*10) hover.Parent = game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Parent.Name) if script.Parent.Parent.Parent.VehicleFrame.Slot.Value == 1 then script.Parent.Parent.Parent.VehicleFrame.Slot1.WhatCar.Value = 2 script.Parent.Parent.Parent.CarPreviewFrame.Visible = false script.Parent.Parent.Parent.BuyVehicleFrame.Visible = false script.Parent.Parent.Parent.VehicleFrame.Slot1.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) script.Parent.Parent.Parent.VehicleFrame.Slot2.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) elseif script.Parent.Parent.Parent.VehicleFrame.Slot.Value == 2 then script.Parent.Parent.Parent.VehicleFrame.Slot1.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) script.Parent.Parent.Parent.VehicleFrame.Slot2.BackgroundColor3 = Color3.new(28/255, 127/255, 127/255) script.Parent.Parent.Parent.VehicleFrame.Slot2.WhatCar.Value = 2 script.Parent.Parent.Parent.CarPreviewFrame.Visible = false script.Parent.Parent.Parent.BuyVehicleFrame.Visible = false else end script.Parent.Parent.Visible = false end end
script.Parent.MouseButton1Down:connect(Click)
That one inserts a model from lighting on the click of a gui button... then also makes it so a gi says what car has inserted....
Then i have one that sells the inserted car;
function Click() if script.Parent.Parent.Parent.VehicleFrame.Slot.Value ~= 0 then if script.Parent.Parent.Parent.VehicleFrame:FindFirstChild("Slot"..script.Parent.Parent.Parent.VehicleFrame.Slot.Value).WhatCar.Value == 1 then game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Parent.Name).Camero:remove() script.Parent.Parent.Parent.VehicleFrame:FindFirstChild("Slot"..script.Parent.Parent.Parent.VehicleFrame.Slot.Value).WhatCar.Value = 0 elseif script.Parent.Parent.Parent.VehicleFrame:FindFirstChild("Slot"..script.Parent.Parent.Parent.VehicleFrame.Slot.Value).WhatCar.Value == 2 then game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Parent.Name).Lambo:remove() script.Parent.Parent.Parent.VehicleFrame:FindFirstChild("Slot"..script.Parent.Parent.Parent.VehicleFrame.Slot.Value).WhatCar.Value = 0
else print 'No Car Owned' end end end
script.Parent.MouseButton1Down:connect(Click)
You're welcome. |
|
|
| Report Abuse |
|
|
|
| 18 May 2013 02:43 PM |
idk how to script
(ง'̀-'́)ง |
|
|
| Report Abuse |
|
|
|
| 18 May 2013 02:43 PM |
@bob
wow thank you i know everything now |
|
|
| Report Abuse |
|
|
bob354293
|
  |
| Joined: 26 Oct 2008 |
| Total Posts: 2609 |
|
|
| 18 May 2013 02:44 PM |
No you don't
That stuff is pretty basic...
Im alright at scripting....
I can do everything i need to do...
Just not using tables... getting random people... etc... |
|
|
| Report Abuse |
|
|
Jacobi00
|
  |
| Joined: 23 May 2011 |
| Total Posts: 21 |
|
|
| 07 Jun 2013 05:25 PM |
| Forget it guys, I found a good group for scripting, thanks anyway :) |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2013 05:30 PM |
| http://www.youtube.com/playlist?list=PL8A3AFE78FAF8CF49 |
|
|
| Report Abuse |
|
|
Jacobi00
|
  |
| Joined: 23 May 2011 |
| Total Posts: 21 |
|
|
| 08 Jun 2013 11:17 AM |
| Thanks man, that'll probably help me out a LOT :) |
|
|
| Report Abuse |
|
|