Laxxe
|
  |
| Joined: 14 Jul 2007 |
| Total Posts: 507 |
|
|
| 17 Jul 2007 08:34 AM |
This script runs when you push a button, I need it to run without a button.
======================================== humanoid = nil
function onTouched(part) if part.Parent ~= nil then local h = part.Parent:findFirstChild("Humanoid") if h~=nil then if isenabled~=0 then if h==humanoid then return end
while true do local toast=script.Parent.toast:clone() isenabled=0 toast.Parent=game.Workspace toast.Transparency=0 toast.Locked=false toast.Anchored=false toast.CanCollide=true toast.RotVelocity=Vector3.new(0,0,0) local toastrot=CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) toast.CFrame = script.Parent.toaster.CFrame * CFrame.new(Vector3.new(0,0,0)) * toastrot
wait(1) isenabled=1
end end end end end
game.Workspace.ButtonOn.Touched:connect(onTouched) ======================================== |
|
|
| Report Abuse |
|
|
PCwiener
|
  |
| Joined: 03 Mar 2007 |
| Total Posts: 3746 |
|
|
| 17 Jul 2007 10:15 AM |
ah... i made one of these.... can you not turn it into a while loop?
http://wiki.roblox.com/index.php?title=Basic_Scripting#While_Loops
i might help if you cant.... |
|
|
| Report Abuse |
|
|
Laxxe
|
  |
| Joined: 14 Jul 2007 |
| Total Posts: 507 |
|
|
| 17 Jul 2007 02:28 PM |
It...is a while loop...
I just need it to run straight itself, not when you press the button |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2007 03:28 AM |
while true do local toast=script.Parent.toast:clone() toast.Parent=game.Workspace toast.Transparency=0 toast.Locked=false toast.Anchored=false toast.CanCollide=true toast.RotVelocity=Vector3.new(0,0,0) local toastrot=CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) toast.CFrame = script.Parent.toaster.CFrame * CFrame.new(Vector3.new(0,0,0)) * toastrot end |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2007 03:29 AM |
oops mistake
while true do local toast=script.Parent.toast:clone() toast.Parent=game.Workspace toast.Transparency=0 toast.Locked=false toast.Anchored=false toast.CanCollide=true toast.RotVelocity=Vector3.new(0,0,0) local toastrot=CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) toast.CFrame = script.Parent.toaster.CFrame * CFrame.new(Vector3.new(0,0,0)) * toastrot wait(5) -- change this to what you want end |
|
|
| Report Abuse |
|
|
Laxxe
|
  |
| Joined: 14 Jul 2007 |
| Total Posts: 507 |
|
|
| 18 Jul 2007 04:36 AM |
Perfect thank you! Now I don't have the trouble with the script double or even triple running itself resulting in a clog and a mass cake explosion! |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jun 2013 06:12 AM |
| im downg.rading so send me trades |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 06:12 AM |
| upgrading .so send me trade!s |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 10 Jun 2013 06:14 AM |
| send me a friend. request! |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 06:14 AM |
| how much robux do you ha.ve |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jun 2013 06:14 AM |
| friend ho.w much tix u has |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 06:14 AM |
| wanna trade with me cuz i like trading |
|
|
| Report Abuse |
|
|