|
| 23 Jul 2012 01:01 AM |
When I "render" the map up, wait a bit, "de-render" it, wait a bit, and try to "render" it again, it doesn't work.
Admins = {"romaster512"}
Model = game.Lighting.Oldmap:clone() Render = script.Parent.Render game.Players.PlayerAdded:connect(function(plyr) for a, b in pairs(Admins) do if b == plyr.Name then plyr.Chatted:connect(function(msg) if msg == "RenderOldmap" and Render.Value == false then Model.Parent = game.Workspace wait(0.5) Render.Value = true elseif msg == "DeRenderOldmap" and Render.Value == true then game.Workspace.Oldmap:Destroy() wait(0.5) Render.Value = false end end) end end end)
I'm not sure what's going wrong. Help?
Thanks in advance. |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Jul 2012 01:27 AM |
| No one? I thought this was a pretty basic script.. |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 01:45 AM |
while wait(0.5) Model = game.Lighting.Oldmap:clone() Render = script.Parent.Render game.Players.PlayerAdded:connect(function(plyr) for a, b in pairs(Admins) do if b == plyr.Name then plyr.Chatted:connect(function(msg) if msg == "RenderOldmap" and Render.Value == false then Model.Parent = game.Workspace wait(0.5) Render.Value = true elseif msg == "DeRenderOldmap" and Render.Value == true then game.Workspace.Oldmap:Destroy() wait(0.5) Render.Value = false end end) end end end) end |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 01:45 AM |
oops, forgot something
while wait(0.5) do Model = game.Lighting.Oldmap:clone() Render = script.Parent.Render game.Players.PlayerAdded:connect(function(plyr) for a, b in pairs(Admins) do if b == plyr.Name then plyr.Chatted:connect(function(msg) if msg == "RenderOldmap" and Render.Value == false then Model.Parent = game.Workspace wait(0.5) Render.Value = true elseif msg == "DeRenderOldmap" and Render.Value == true then game.Workspace.Oldmap:Destroy() wait(0.5) Render.Value = false end end) end end end) end |
|
|
| Report Abuse |
|
|
| |
|