|
| 28 Nov 2017 08:36 PM |
Recently in my Roblox Studio game when equipping a weapon your character immediately dies.
The script is a STARENATOR script used in the guns. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 08:40 PM |
| So I checked my older backup saves of my game (goes from update 17 to 72) and I checked 17 and it seems the same problem occurred. I haven't edited the script since update 17. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 08:46 PM |
| Update: Got some more weapons from the Toolbox and seems that some weapons don't have this problem that use the same STARLENATOR scripts. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 08:49 PM |
Update: this script here causes the problem. I don't know what is wrong with it.
wait(math.random(0, 200) / 200)
if _G.Ignore_Code then
if (not game.Workspace:FindFirstChild("Ignore_Model_".._G.Ignore_Code)) then local Ignore_Model = Instance.new("Model") Ignore_Model.Name = "Ignore_Model_".._G.Ignore_Code Ignore_Model.Parent = game.Workspace spawn(function() while true do Ignore_Model.Parent = game.Workspace wait(1 / 20) end end) end script.Parent:WaitForChild("Central_v2.5.1"):WaitForChild("Ignore_Code").Value = _G.Ignore_Code else _G.Ignore_Code = math.random(1, 1e4) if (not game.Workspace:FindFirstChild("Ignore_Model_".._G.Ignore_Code)) then local Ignore_Model = Instance.new("Model") Ignore_Model.Name = "Ignore_Model_".._G.Ignore_Code Ignore_Model.Parent = game.Workspace spawn(function() while true do Ignore_Model.Parent = game.Workspace wait(1 / 20) end end) end script.Parent:WaitForChild("Central_v2.5.1"):WaitForChild("Ignore_Code").Value = _G.Ignore_Code end
spawn(function() repeat wait() until _G.Ignore_Code local Ignore_Model = game.Workspace:WaitForChild("Ignore_Model_".._G.Ignore_Code) while true do for _, Gun_Ignore in pairs(Ignore_Model:GetChildren()) do if (not game.Players:FindFirstChild(Gun_Ignore.Name:sub(12))) then Gun_Ignore:Destroy() end end wait(1 / 20) end end) |
|
|
| Report Abuse |
|
|
RCL_Meee
|
  |
| Joined: 07 Oct 2017 |
| Total Posts: 247 |
|
|
| 28 Nov 2017 09:43 PM |
| i see the problem but i dont know how to fix it "Gun_Ignore:Destroy()" seems like when it destroyer the gun it ends up ####### ### |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 10:16 PM |
Yeah, that's what I was thinking.
Although I'm not too good at scripting so I'm not sure I can fix it. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2017 02:09 AM |
It must be a virus hidden in the script or some other script.. this is why you make your own models.
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2017 07:59 AM |
| Maybe, although it's kinda odd it only started now instead of when I first got them. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2017 08:12 AM |
| Update: Yesterday only a few of them did this. Now even ones that didn't and the ones I made myself are having this problem. A few other games made by other people are having this problem. Such as another game similar to mine. |
|
|
| Report Abuse |
|
|