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 » Scripting Helpers
Home Search
 

Re: Scripting

Previous Thread :: Next Thread 
Jacobi00 is not online. 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 is not online. 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
lyingzerman is not online. lyingzerman
Joined: 05 Aug 2010
Total Posts: 10224
18 May 2013 02:43 PM
idk how to script

(ง'̀-'́)ง
Report Abuse
coolkid437 is not online. coolkid437
Joined: 30 Mar 2009
Total Posts: 10502
18 May 2013 02:43 PM
@bob

wow thank you i know everything now
Report Abuse
bob354293 is not online. 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 is not online. 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
Mikenberg123 is not online. Mikenberg123
Joined: 18 Jan 2011
Total Posts: 2099
07 Jun 2013 05:30 PM
http://www.youtube.com/playlist?list=PL8A3AFE78FAF8CF49
Report Abuse
Jacobi00 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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