generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Local Script

Previous Thread :: Next Thread 
ibranext is not online. 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
purplescheer9 is not online. purplescheer9
Joined: 16 Jan 2011
Total Posts: 3852
29 Jun 2014 09:45 AM
What's the script?
Report Abuse
ibranext is not online. 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
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
29 Jun 2014 09:49 AM
put it in startergui or playergui
Report Abuse
RoflBread is not online. 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 is not online. ibranext
Joined: 08 Aug 2012
Total Posts: 361
29 Jun 2014 09:51 AM
LocalScript>StarterPack
Tool>StarterGUI
Report Abuse
RoflBread is not online. 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 is not online. 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 is not online. ibranext
Joined: 08 Aug 2012
Total Posts: 361
29 Jun 2014 10:17 AM
Bump?
Report Abuse
ibranext is not online. ibranext
Joined: 08 Aug 2012
Total Posts: 361
29 Jun 2014 01:16 PM
No one knows?
Report Abuse
insaneROBLOXER123 is not online. insaneROBLOXER123
Joined: 23 Nov 2011
Total Posts: 192
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image