ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 29 Jun 2014 09:45 AM |
| Why dose my local script work on "Solo Test" but not on online? Any help? |
|
|
| Report Abuse |
|
|
| |
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 29 Jun 2014 09:47 AM |
plr = game.Players.LocalPlayer repeat wait() until plr char = plr.Character mouse = plr:GetMouse() local holding = false |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 09:49 AM |
| put it in startergui or playergui |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 29 Jun 2014 09:49 AM |
| Is the local script inside the player or player character? |
|
|
| Report Abuse |
|
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 29 Jun 2014 09:51 AM |
LocalScript>StarterPack Tool>StarterGUI |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 29 Jun 2014 09:53 AM |
| The script you posted doesn't do anything apart from declare variables. What do you want it to do? |
|
|
| Report Abuse |
|
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 29 Jun 2014 10:00 AM |
rs = char.Torso["Right Shoulder"]
PathToTool = plr.PlayerGui --put the torch inside StarterGui ToolName = "Pistol" --you can change this
mouse.KeyDown:connect(function(key) if key:lower() == "c" then if not holding then if char:FindFirstChild("Humanoid") then if PathToTool:FindFirstChild(ToolName) then char.Humanoid:EquipTool(PathToTool[ToolName]) rs.C0 = rs.C0 * CFrame.Angles(0,0,math.rad(-45)) holding = true end end elseif holding then if char:FindFirstChild("Humanoid") then if char:FindFirstChild(ToolName) then char[ToolName].Parent = PathToTool rs.C0 = rs.C0 * CFrame.Angles(0,0,math.rad(45)) holding = false end end end end end) |
|
|
| Report Abuse |
|
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
| |
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
| |
|
|
| 29 Jun 2014 01:29 PM |
plr = game.Players.LocalPlayer repeat wait() until plr.Character char = plr.Character mouse = plr:GetMouse() local holding = false
Try that.
-IПƧΛПΣ- |
|
|
| Report Abuse |
|
|