|
| 12 Mar 2015 05:17 PM |
How do I make it so I can only touch the brick every 10 seconds
local boat1 = game.ServerStorage.Boat1 local finder = script.Parent.BoatName local msg = Instance.new("Message")
function onTouch() if finder.Value == "Boat1" then boat1:Clone().Parent = workspace msg:Clone().Parent = workspace end end script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2015 05:20 PM |
make a countdown ;-;
if seconds==0 then return end script.Parent.Active = false seconds=seconds-1 wait(1) if seconds==0 then end |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2015 05:36 PM |
NO LOL ^
local boat1 = game.ServerStorage.Boat1 local finder = script.Parent.BoatName local msg = Instance.new("Message") local db = true local secwait = 10
script.Parent.Touched:connect(function() if finder.Value == "Boat1" and db then boat1:Clone().Parent = workspace msg:Clone().Parent = workspace db = false end wait(10) db = true end) |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 12 Mar 2015 05:37 PM |
local boat1 = game.ServerStorage.Boat1 local finder = script.Parent.BoatName local msg = Instance.new("Message")
while true do script.Parent.Touched:wait() if finder.Value == "Boat1" then boat1:Clone().Parent = workspace msg:Clone().Parent = workspace wait(10) end ebd |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Mar 2015 05:39 PM |
| Seranok, when you get the chance, follow me, please ;) |
|
|
| Report Abuse |
|
|
| |
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
| |
|