The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
|
![]() |
I need help converting these ROBLOX Codes Into Buildism Codes - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13) +--- Thread: I need help converting these ROBLOX Codes Into Buildism Codes (/showthread.php?tid=7797) |
I need help converting these ROBLOX Codes Into Buildism Codes - Excel - 08-07-2011 Heal Pad: Code: local onColor = BrickColor.new(37) Deathplates: Code: local plates = {} RE: I need help converting these ROBLOX Codes Into Buildism Codes - Ashely - 08-07-2011 Read this, should help. http://buildism.net/wiki/Converting_from_ROBLOX_Lua_to_Buildism_Lua RE: I need help converting these ROBLOX Codes Into Buildism Codes - Vast - 08-07-2011 hmmmm.. RE: I need help converting these ROBLOX Codes Into Buildism Codes - Glome - 08-07-2011 Health pad: [lua]enabled = true local cooldown = 1 -- time until it reactivates function waitFor(time) local waittime = os.time() while os.time() - waittime < time do sleep(0.001) end end function OnCollided(hit) if hit.Parent.Type == "Character" and enabled then hit.Parent.Health = hit.Parent.MaximumHealth script.Parent.Color = Color(255, 0, 0) enabled = false waitFor(cooldown) script.Parent.Color = Color(0, 192, 0) enabled = true end end link(script.Parent.Collided, OnCollided)[/lua] Deathplates: [lua]enabled = true local reappear = 5 --how many seconds until it becomes visible function waitFor(time) local waittime = os.time() while os.time() - waittime < time do sleep(0.001) end end function OnCollided(hit) if hit.Parent.Type == "Character" and enabled then enabled = false script.Parent.Transparency = 0.2 waitFor(0.2) script.Parent.Transparency = 0.4 waitFor(0.2) script.Parent.Transparency = 0.6 waitFor(0.2) script.Parent.Transparency = 0.8 waitFor(0.2) script.Parent.Transparency = 1 script.Parent.Collidable = false script.Parent.CharacterCollide = false waitFor(reappear) script.Parent.Transparency = 0 script.Parent.Collidable = true script.Parent.CharacterCollide = true enabled = true end end link(script.Parent.Collided, OnCollided)[/lua] RE: I need help converting these ROBLOX Codes Into Buildism Codes - Excel - 08-07-2011 (08-07-2011, 02:37 PM)Glome Wrote: Health pad: Thanks so much! :> Dis will be epic fo mah place :> |