thumper10
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 3304 |
|
|
| 30 Jul 2011 12:43 PM |
This is really odd. I've made a model that deploy's Toxic Gas into the air. It works GREAT in Play Solo, but fails to produce results in Multiplayer. Not very efficient, but it works (only in offline mode of course).
The Source (Source is divided between 3 Scripts, I have labeled them for you): -- Main script local puffer = script.Parent.Parent.output local POOF = script.Parent.Parent.sounds.puff
local clicked = false
script.Parent.cd.MouseClick:connect(function () if clicked then return else clicked = true for a = 1, 111 do puffer.CFrame = puffer.CFrame + Vector3.new(0, 0.01, 0) wait(0.01) end puffer.toxin.Enabled = true POOF:Play() for i, v in pairs (game:service("Workspace"):GetChildren()) do if v:IsA("Model") then torso = v:findFirstChild("Torso") humanoid = v:findFirstChild("Humanoid") if torso ~= nil and humanoid ~= nil then if (torso.Position).magnitude <= 50 then c = script.drain:Clone() c.Parent = torso.Parent c.Disabled = false end end end end wait(0.8) puffer.toxin.Enabled = false for b = 1, 111 do puffer.CFrame = puffer.CFrame - Vector3.new(0 , 0.01, 0) wait(0.01) end clicked = false end end)
-- Drain Script local player = script.Parent.Name c = script.toxingui:Clone() c.trans.Disabled = false c.Parent = game:service("Players"):findFirstChild(player).PlayerGui
for a = 1, math.huge do wait(0.2) script.Parent.Humanoid.Health = script.Parent.Humanoid.Health - 1 end
-- Toxic GUI Script (fades to green for effect) for a = 1, 200 do wait(0.1) script.Parent.Frame.BackgroundTransparency = script.Parent.Frame.BackgroundTransparency - 0.01 -- Not coming out in one line on the forums. Sorry. end
I hope someone can tell me what's going on. You can get the full model to test here: http://www.roblox.com/Toxic-Smoke-item?id=57959146 Thanks in advance! - thumper10, C# freak |
|
|
| Report Abuse |
|
|
thumper10
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 3304 |
|
|
| 30 Jul 2011 12:45 PM |
I forgot to mention, when online, the puffer goes up, puffs smoke, and goes down. But nothing else happens like it's supposed to.
- thumper10, C# freak |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2011 12:48 PM |
| Since you have the place built and all objects placed, I'll suggest you two ways to find the error. If it's a normal script, use tools>Test>Start Server and from the server screen tools>Test>Start Player. You will see the server output and all latency will (probably) be simulated. If it's a local script, simply check the logs in C:\Users\[username]\AppData\Local\Roblox\logs (for Windows7). |
|
|
| Report Abuse |
|
|
thumper10
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 3304 |
|
|
| 30 Jul 2011 12:53 PM |
@SilentEnigma Thank you for the advice! I'll try that right now.
- thumper10, C# freak |
|
|
| Report Abuse |
|
|
thumper10
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 3304 |
|
|
| 30 Jul 2011 12:56 PM |
Work's perfectly fine. However I think I might know the issue, it might be related to the place I test it in. (Slimesick's Insert Wars). I'll be back with a responce shortly.
- thumper10, C# freak |
|
|
| Report Abuse |
|
|
thumper10
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 3304 |
|
|
| 30 Jul 2011 01:15 PM |
Works fine. It was just the place. Thank you for your help anyways!
- thumper10, C# Prodigy |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2011 01:16 PM |
Thumper, why did you go from Freak to Prodigy?
~COD~ ==Scripting Helpers Scripter Class-1== |
|
|
| Report Abuse |
|
|