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

Gun not working once Cloned from ReplicatedStorage?

Asked by 3 years ago
Edited 3 years ago

Im trying to make a Gamepass that once you buy it you will be granted a Grenade Launcher made by Roblox (rbxassetid://4842201032). It all works fine except the Grenade launcher doesn't do any damage to the player. I have the Gun cloned from ReplicatedStorage into the players backpack. I have done the Setup roblox has told me to do with the gun.

local player =game.Players.LocalPlayer local ownsGamepass =game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 13440876)

if ownsGamepass then local GrenadeLauncher = game:GetService("ReplicatedStorage"):WaitForChild("Grenade Launcher"):Clone() GrenadeLauncher.Parent = player.Backpack end

Here is the script i used To clone the Grenade Launcher into the players Backpack

0
Here, the issue is the gun, and not actually the putting into the players backpack. Also i really recommend you use code blocks since it makes your text look like lua. munkuush 22 — 3y

Answer this question