Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Localscript script cloning not working properly? [closed]

Asked by 5 years ago

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.

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. xPolarium 1388 — 5y
0
correct. I'll show it right now ItsWAWGaming -18 — 5y
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 ItsWAWGaming -18 — 5y
0
Basically pay attention to the part about the clone, thats where stuff isnt working right in game. ItsWAWGaming -18 — 5y
View all comments (2 more)
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 xPolarium 1388 — 5y
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. RAYAN1565 691 — 5y

Closed as Too Broad by User#19524

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?