Okay so I'm making a gun, For bullet damage on NPCs I've found a way to work around FE Blocking certain stuff, So It'll damage NPCs HOWEVER, The script with the string value inside of it that is cloned into the bullet part that is fired out of the gun, ONLY LOADS THE STRING IN STUDIO! Why wont it load the string in game? Keep in mind, its being cloned from a local script which is the only option considering the way the gun is made.

6 comments

0

Please provide the code to the question if you want any sort of real help. By the sound of your description, you're gonna want a 'Normal' script to do this since it wont replicate to the server.

0

correct. I'll show it right now

0

local function CreateBullet(bulletPos) local bullet = Instance.new('Part', workspace) local BulletImpact = script.Parent.BulletDamageNPC:Clone() BulletImpact.Parent = bullet bullet.CanCollide = false bullet.FormFactor = Enum.FormFactor.Custom bullet.Size = Vector3.new(0.1, 0.1, 0.1) bullet.BrickColor = BrickColor.new("Really black") bullet.Shape = Enum.PartType.Block bullet.CanCollide = f

0

Basically pay attention to the part about the clone, thats where stuff isnt working right in game.

0

Edit your post and add the code in a Code Block. Don't use the comments. https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site

0

You're not being helpful by posting the code in the comments. Please follow the link @xPolarium has commented to properly format your code within a code block in your post. Also, considering you did not properly address this in a timely matter, you are least likely to receive help. If I were you, I'd consider deleting this post and starting a new one with correctly formatted code.