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: script fixing

Previous Thread :: Next Thread 
ferno474 is not online. ferno474
Joined: 22 Feb 2013
Total Posts: 10
22 Mar 2014 05:43 AM
here post your scripts for others to fix for you. (you may need to pay some people)
Report Abuse
ferno474 is not online. ferno474
Joined: 22 Feb 2013
Total Posts: 10
22 Mar 2014 05:51 AM
I have a few like
this is supposed to time PeoPle
game.Players.PlayerAdded:connect(function(player) --When player joins
local leaderstats = Instance.new("Model", player) --Give them leaderstats
leaderstats.Name = "leaderstats" --Named leaderstats
local Time = Instance.new("IntValue", leaderstats) --Adds the time value
Time.Value = 0 --Sets it to 0
Time.Name = "Time" --Names it Time
local Best = Instance.new("IntValue", leaderstats) --Adds the best time value
Best.Value = 0 --Sets it to 0
Best.Name = "Best Time" --Names it Best Time
end) --Ends leaderstats function (EXTRA FEATURE)
script.Parent.Touched:connect(function(hit) --On hit
if hit.Parent.Humanoid ~= nil then --If its a player then
Stop = Instance.new("BoolValue") --Creates a stop value
Stop.Value = false --Sets stop to false
Stop.Parent = hit --Gives the player the stop value
Stop.Name = "Stop" --Names it for further access
Time = Instance.new("NumberValue") --Creates a time value
Time.Parent = hit --Gives the player the time value
Time.Value = 0 --Sets the value to 0 seconds
Time.Name = "Time" --Names it for further access
repeat --Repeats the following
wait(0.001) --Waits a millesecond (MILLESECOND NOT JUST A SECOND, EXTRA FEATURE)
Time.Value = Time.Value + 0.001 --Adds a millesecond onto the time
until stop.Value == true --Stops when the stop value is true
end --Ends the if statement
end) --Ends function
script.Parent.Parent.Stop.Touched:connect(function(hit) --On hit (the stop brick)
if hit.Parent.Humanoid ~= nil then --If its a player then
Time = hit.Time.Value --Identifies the time value
Stop = hit.Stop --Identifies the stop value
Stop.Value = true --Sets stop to true (thereby stoping the timer)
wait(3) --Waits 3 seconds
hit.Time:remove() --Removes the time value, so players don't end up with an infinite ammount, to stop lag.
Stop:remove() --Removes the stop value, so players don't end up with an infinite ammount, to stop lag.
if Time > hit.Leaderstats:FindFirstChild("Best Time").Value then --If Time is better then previous best time (EXTRA FEATURE)
hit.Leaderstats:FindFirstChild("Best Time").Value = Time --Set a new Best Time
end --Ends the if statement
hit.Leaderstats.Time.Value = Time --Adds time value to the leaderboard as their Time
end --Ends if statement
end) --Ends function
Report Abuse
Imaginatived is not online. Imaginatived
Joined: 18 Feb 2013
Total Posts: 10299
22 Mar 2014 07:10 AM
LOL FM
Report Abuse
VanillaLight is not online. VanillaLight
Joined: 02 Nov 2013
Total Posts: 834
22 Mar 2014 10:23 AM
Ewww
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
22 Mar 2014 11:57 AM
Nop
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