|
| 26 Aug 2013 03:55 PM |
Script:
local TOOL = Game:GetService("Lighting").Detnator
local Player = Game:GetService("Players").LocalPlayer local Back = Player:WaitForChild("Backpack") local Character = Player.Character
script.Parent.Equipped:connect(function() local Mouse = Player:GetMouse() Mouse.Button1Down:connect(function() if Character and not Back:FindFirstChild(TOOL.Name) and not Character:FindFirstChild(TOOL.Name) then TOOL:Clone().Parent = Character end end) end)
Problem:
Well the problem is that I go into studio and then go into the test and it works fine but then when I acually play the game where it's in it's broken
|
|
|
| Report Abuse |
|
Ekkoh
|
  |
| Joined: 22 Oct 2012 |
| Total Posts: 524 |
|
|
| 26 Aug 2013 04:09 PM |
With LocalScripts sometimes you have to call wait at the top of your script because some instances like LocalPlayer take a while to initialize.
postCount = postCount + Roblox.Users.epicfail22.postCount; |
|
|
| Report Abuse |
|