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 » Club Houses » Clans & Guilds
Home Search
 

Re: how do i put rcl scripts into a gun model

Previous Thread :: Next Thread 
Verodoxys is not online. Verodoxys
Joined: 29 Jun 2012
Total Posts: 18454
13 Sep 2014 11:23 AM
is not working ;(
Report Abuse
Verodoxys is not online. Verodoxys
Joined: 29 Jun 2012
Total Posts: 18454
13 Sep 2014 11:31 AM
ffffffaaaaaaaaaaa
Report Abuse
Verodoxys is not online. Verodoxys
Joined: 29 Jun 2012
Total Posts: 18454
13 Sep 2014 11:36 AM
the next person to not respond gets pooped on
Report Abuse
VicePrezLava is not online. VicePrezLava
Joined: 03 Jan 2012
Total Posts: 16291
13 Sep 2014 11:37 AM
hacks
Report Abuse
ezaiahs is not online. ezaiahs
Joined: 28 Jun 2011
Total Posts: 18613
13 Sep 2014 11:38 AM
just insert all the scripts into the gun

and then find

local character, handle, [(shooty)], mouseDown, reloading, firing, debris, cframe, vector3, instance, ray, mathRandom, server, body, config, deathCon, serverDmg, pingCon = player.Character, tool.Handle, tool.[(shooty)], false, false, false, game:GetService("Debris"), CFrame.new, Vector3.new, Instance.new, Ray.new, math.random, workspace:findFirstChild("Server.rbxl"), {Torso, LeftArm ,RightArm, LeftShoulder, RightShoulder}


See shooty?(I put it in parenthesis and brackets, dont put that in the script lol)

That is what the brick name where the laser comes out is named

>tool.shooty

goes into tool and finds shooty

the stuff on the left can be named anything but the stuff on the right has to be exactly like it is in your tool(Left and right of the = sign)
Report Abuse
ezaiahs is not online. ezaiahs
Joined: 28 Jun 2011
Total Posts: 18613
13 Sep 2014 11:39 AM
fyi it was not called shooty originally

i changed it to that

just find the thing next to handle(left side) and the thing next to tool.handle(right side)


ALSO


if anything in the script later on refers to what shooty originally was you are gonna need to change that to the new one


Report Abuse
ezaiahs is not online. ezaiahs
Joined: 28 Jun 2011
Total Posts: 18613
13 Sep 2014 11:40 AM
or you could just keep it all the same and just change your gun to whatever shooty was originally into your gun



wow this is actually really hard to explain
Report Abuse
RefundPlease is not online. RefundPlease
Joined: 16 Mar 2011
Total Posts: 1983
13 Sep 2014 11:46 AM
lol. hacks
Report Abuse
thea96 is not online. thea96
Joined: 09 Feb 2011
Total Posts: 37634
13 Sep 2014 11:47 AM
change firing position for the raycast
add weld script
make sure parts are named right, like Handle and tip of gun
Report Abuse
1roy999 is not online. 1roy999
Joined: 18 Jun 2010
Total Posts: 5603
13 Sep 2014 11:48 AM
there are two main parts. Handle and barrel. Add part where you take it out to handle (Regular brick), and shooty part gets the shooty script.
Report Abuse
Verodoxys is not online. Verodoxys
Joined: 29 Jun 2012
Total Posts: 18454
13 Sep 2014 11:48 AM
i got it shooting but

the model happens to be 4 parts and the one i set the Handle to be is the only one actually appearing - looks like the rest aren't welded properly

the script is enabled (it's disabled by default), and here it is;
-- Enable this script if you have a multi part gun otherwise remove it

local function weld(x, y)
local newWeld = Instance.new("Weld")
newWeld.Part0 = x
newWeld.Part1 = y
local CJ = CFrame.new(x.Position)
local C0 = x.CFrame:inverse()* CJ
local C1 = y.CFrame:inverse()* CJ
newWeld.C0 = C0
newWeld.C1 = C1
newWeld.Parent = x
end

function weldParts(object)
if object:IsA("BasePart") then
weld(script.Parent.Handle, object)
object.Anchored = false
else
for i, c in pairs(object:GetChildren()) do
getParts(c)
end
end
end

local function weldTool()
weldParts(script.Parent)
end

script.Parent.Equipped:connect(weldTool)
script.Parent.Unequipped:connect(weldTool)
weldTool()

is there something wrong in there?
Report Abuse
thea96 is not online. thea96
Joined: 09 Feb 2011
Total Posts: 37634
13 Sep 2014 12:09 PM
post the output i can look at it
Report Abuse
Verodoxys is not online. Verodoxys
Joined: 29 Jun 2012
Total Posts: 18454
13 Sep 2014 12:17 PM
13:16:06.785 - Auto-Saving...
13:16:07.185 - Unable to load plugin icon. Image may have an invalid or unknown format.
13:16:07.186 - Unable to load plugin icon. Image may have an invalid or unknown format.
13:16:07.910 - Equipped is not a valid member of Workspace
13:16:07.910 - Script 'Workspace.WeldArm', Line 58
13:16:07.910 - Stack End
13:16:07.944 - FindChildren is not a valid member of Tool
13:16:07.944 - Script 'Players.Player1.Backpack.GPR.Welding', Line 20 - global weldParts
13:16:07.945 - Script 'Players.Player1.Backpack.GPR.Welding', Line 27 - local weldTool
13:16:07.945 - Script 'Players.Player1.Backpack.GPR.Welding', Line 32
13:16:07.945 - Stack End
[RCL] Server.rbxl loaded
[RCL] Plugin loaded: Flairs.rbxl
[RCL] Plugin loaded: Announce.rbxl
[RCL] Plugin loaded: TeamFix.rbxl
13:16:11.295 - FindChildren is not a valid member of Tool
13:16:11.295 - Script 'Players.Player1.Backpack.GPR.Welding', Line 20 - global weldParts
13:16:11.296 - Script 'Players.Player1.Backpack.GPR.Welding', Line 27
13:16:11.296 - Stack End
13:16:11.296 - Disconnected event because of exception
Report Abuse
thea96 is not online. thea96
Joined: 09 Feb 2011
Total Posts: 37634
13 Sep 2014 12:25 PM
13:16:07.910 - Script 'Workspace.WeldArm', Line 58

look at that?
Report Abuse
Nederlandz is not online. Nederlandz
Joined: 12 May 2011
Total Posts: 21882
13 Sep 2014 12:30 PM
dont do rcl scripts for jc's guns plz
Report Abuse
Verodoxys is not online. Verodoxys
Joined: 29 Jun 2012
Total Posts: 18454
13 Sep 2014 01:26 PM
@ned

im not
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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