Thanks for this @papa_kupcake it works nicely and I’m now eager to figure out what you did.
Are all the changes you made mentioned above?
I need to update my own branch of the WeaponsSystem which logs damage history for issuing rewards fairly.
Thanks for this @papa_kupcake it works nicely and I’m now eager to figure out what you did.
Are all the changes you made mentioned above?
I need to update my own branch of the WeaponsSystem which logs damage history for issuing rewards fairly.
Yes, the changes I made are mentioned above, as well as the cause of it being broken. @Thundermaker300 actually provided the main fixes. I simply applied them to Roblox’s updated Weapons System.
Hello, which lines will I have to change? Please show me exactly what you changed!
See the 1st reply-post that I made above. I mention what I changed.
A fellow programmer (@AstralKingdoms) and I fixed the weapons system up a bit. See below for how to add our fix and what we changed.
This weapons system fixes the following issues outlined in this post:
There are still some bugs with it, including…
sorry to re-ring this, but thank you.
I forgot to mention this in the previous post, however I got a few questions about this so I’d like to elaborate briefly.
if you are using my modified kit found in my post above this one, it comes with a system of preventing same “teams” from attacking each other. You can set this up by following these steps.
For example, if you’d like Red and Blue teams, you can use the above system by creating the “Role” StringValue in every red player and give it the value of “Red”, and same for the blue team, except with the value of “Blue” instead.
If you’d prefer to use native team objects, you’ll have to experiment with this on your own as I do not use teams in my projects.
Nice i needed something like this. Thanks bro. and right on time as well
I’m having some problems with R6 with this modified version that I didn’t had before, It works perfectly fine in R15 but when I set the game to R6 it breaks.
When I was doing my optimizations, it was never really meant for R6 being provided that this kit is from Roblox which was made for R15 (Animations and such) and we’ve only modified it to be working with R15 at the moment and preventing stuck animations, mouse locking and other issues, apologies!
I know this a little late, but have you figured out how to properly track who killed a player using this kit? There doesn’t seem to be any creator tags relating this anywhere in the kit.
Kill tracking is not included in the original kit (at least not when we forked it), and as such is not included in our modified kit. You’ll have to implement this yourself.
I’m pretty sure they’re aware of the original creator and was just asking if our forked kit contains kill tracking.
Sorry to bump but after you delete line 185, put a LocalScript in the tool and put
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local WeaponsSystem = ReplicatedStorage:WaitForChild(“WeaponsSystem”)
local weaponModule = require(WeaponsSystem:WaitForChild(“WeaponsSystem”))
local camera = workspace.Camera
local player = game:GetService(“Players”).LocalPlayer
script.Parent.Equipped:Connect(function()
weaponModule.camera:setEnabled(true)
weaponModule.camera.rotateCharacterWithCamera = true
end)
script.Parent.Unequipped:Connect(function()
weaponModule.camera:setEnabled(false)
weaponModule.camera.rotateCharacterWithCamera = false
camera.CameraSubject = player.Character
weaponModule.normalOffset = Vector3.new(0,0,0)
end)
You can even add 1st person in the guns using this just set the normalOffset thingy to something really less when the guns equipped I have tried it and if u wanna go in advance then you can use UserInputService
to enable/disable 1st person when the user presses a key (actually ur gonna change the offset to trick the user lol). Idk how to enable scrolling the camera tho
Sorry to re-ring this, but friendly-fire isn’t working. I have made a StringValue
with name “Role” and its value to “player”. The Script
is inside StarterPlayer > StarterCharacterScripts
Here is the script:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local role = Instance.new("StringValue", character)
role.Name = "Role"
role.Value = "player"
end)
end)
Thanks
Thanks a lot! The weapons system is such a good resource!
But, I found out a small bug: if you unequip the weapon, the character does some weird things… Not too bad, but it would be cool if someone got a fix for that one.
Tried to upload a video, but it is too big with it’s 1 minute…
Thanks for help!
Is the friendly fire working in yours? Just asking cuz its not in mine