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
|
  |
| 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 |
|
|
| |
|
| |
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|