|
| 30 Apr 2016 07:20 AM |
So, My issue with this script is in Test servers the script works fine. Thought in Live servers the script doesn't work at all, I'm not sure what's causing this and need some assistance with it, As it's kind of annoying it works one way, not the other.
local Player = game.Players.LocalPlayer
Player.Character.ChildAdded:connect(function(child) if child:IsA("Tool") then wait(0.1) local MinDmg = child:findFirstChild("MinDmg") local MaxDmg = child:findFirstChild("MaxDmg") script.Parent.WepName.Text = child.Name .. "'s " .. " Dmg: " .. MinDmg.Value .. " - " .. MaxDmg.Value end end)
Player.Character.ChildRemoved:connect(function(child) if child:IsA("Tool") then wait(0.1) script.Parent.WepName.Text = (" Unequipped ") end end) |
|
|
| Report Abuse |
|
|
| 30 Apr 2016 07:28 AM |
local MinDmg = child:FindFirstChild('MinDmg') local MaxDmg = child:FindFirstChild('MaxDmg') Try that |
|
|
| Report Abuse |
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 30 Apr 2016 07:59 AM |
local MinDmg = child:WaitForChild("MinDmg") local MaxDmg = child:WaitForChild("MaxDmg")
|
|
|
| Report Abuse |
|