I made a death match game and you have 2 weapons knife and revolver when you kill someone with knife you get a point and weirdly when you kill someone with gun you doesn't get a point idk why it happens also when you are attack someone with knife first and kill them finnaly with a gun you got a point but when you do same thing but with a gun first you dont
#Revolver kill doesn't give points
1 messages · Page 1 of 1 (latest)
Also what are the errors
** You are now Level 4! **
Like i just put ready deathmatch mode from some youtuber and other also have this problem with not working gun
local Time = game.ReplicatedStorage.Time
local BlueKill = game.ReplicatedStorage.BlueKill
local RedKill = game.ReplicatedStorage.RedKill
local Status = game.ReplicatedStorage.Status
local Teams = game:GetService("Teams")
local BlueTeam = 0
local RedTeam = 0
function TimeWait(TimeToWait)
Time.Value = TimeToWait
repeat
wait(1)
Time.Value -= 1
until Time.Value < 1
end
game.Players.PlayerAdded:Connect(function(player)
if Status.Value == "Round in progress" then
if BlueTeam < RedTeam then
BlueTeam += 1
player.Team = Teams.Blue
player.TeamColor = Teams.Blue.TeamColor
elseif RedTeam < BlueTeam then
RedTeam += 1
player.Team = Teams.Red
player.TeamColor = Teams.Red.TeamColor
end
wait(1)
player:LoadCharacter()
end
player.CharacterAdded:Connect(function(character)
character.Humanoid.Died:Connect(function()
if character.Humanoid:FindFirstChild("creator") then
local killer = character.Humanoid:FindFirstChild("creator").Value
if killer.TeamColor == Teams.Blue.TeamColor then
BlueKill.Value += 1
else
RedKill.Value += 1
end
end
end)
end)
end)
while true do
BlueTeam = 0
RedTeam = 0
RedKill.Value = 0
BlueKill.Value = 0
for _,v in pairs(game.Players:GetChildren()) do
v.Team = Teams.Neutral
v.TeamColor = Teams.Neutral.TeamColor
end
wait(1)
for _,v in pairs(game.Players:GetChildren()) do
v:LoadCharacter()
end
Status.Value = "Intermission"
TimeWait(20)
if #game.Players:GetChildren() < 1 then
Status.Value = "Need More Players"
TimeWait(5)
else
Status.Value = "Round in progress"
for _,v in pairs(game.Players:GetChildren()) do
if BlueTeam <= RedTeam then
BlueTeam += 1
v.Team = Teams.Blue
v.TeamColor = Teams.Blue.TeamColor
elseif RedTeam < BlueTeam then
RedTeam += 1
v.Team = Teams.Red
v.TeamColor = Teams.Red.TeamColor
end
end
wait(1)
for _,v in pairs(game.Players:GetChildren()) do
v:LoadCharacter()
end
TimeWait(150)
for _,v in pairs(game.Players:GetChildren()) do
v.Team = Teams.Neutral
v.TeamColor = Teams.Neutral.TeamColor
end
wait(1)
for _,v in pairs(game.Players:GetChildren()) do
v:LoadCharacter()
end
if BlueKill.Value > RedKill.Value then
Status.Value = "Sheriffes Win!"
elseif RedKill.Value > BlueKill.Value then
Status.Value = "Cowboys Win!"
else
Status.Value = "Tie!"
end
TimeWait(5)
end
end
@gaunt wolf
local Time = game.ReplicatedStorage.Time
local BlueKill = game.ReplicatedStorage.BlueKill
local RedKill = game.ReplicatedStorage.RedKill
local Status = game.ReplicatedStorage.Status
local Teams = game:GetService("Teams")
local BlueTeam = 0
local RedTeam = 0
function TimeWait(TimeToWait)
Time.Value = TimeToWait
repeat
wait(1)
Time.Value -= 1
until Time.Value < 1
end
game.Players.PlayerAdded:Connect(function(player)
if Status.Value == "Round in progress" then
if BlueTeam < RedTeam then
BlueTeam += 1
player.Team = Teams.Blue
player.TeamColor = Teams.Blue.TeamColor
elseif RedTeam < BlueTeam then
RedTeam += 1
player.Team = Teams.Red
player.TeamColor = Teams.Red.TeamColor
end
wait(1)
player:LoadCharacter()
end
player.CharacterAdded:Connect(function(character)
character.Humanoid.Died:Connect(function()
if character.Humanoid:FindFirstChild("creator") then
local killer = character.Humanoid:FindFirstChild("creator").Value
if killer.TeamColor == Teams.Blue.TeamColor then
BlueKill.Value += 1
else
RedKill.Value += 1
end
end
end)
end)
end)
dont mind me just codeblocking it...
@digital vault what are the errors?
bro you doesnt get point for killing with gun thats the problem
Syntax Errors
what that means
oh my lord
sry but im new to scrypting
i just started 3 days ago
so can you help me?
how to check it
you doesnt need to be rude
im not being rude
i just dont know ts
thx
so, what are the errors
20:04:55.763 ServerEvents is not a valid member of ReplicatedStorage "ReplicatedStorage" - Serwer - ServerHandler:7
20:04:55.764 FirstPersonLock is not a valid member of Script "Workspace.Main" - Serwer - Main:1
maybe thats the problem?
jeez.
No your problem is that you shouldnt use free assets.
so how to get a good gun weapon
you dont, you make it.
Then why even bother stepping in studio?
and everyone in the comments
has the problem with guns
so maybe something with script is the problem?
Yes.
The Script is the problem
but everythink works except guns point system
Script is still the problem
you find it yourself
and also
20:05:22.225 Failed to load animation with sanitized ID rbxassetid://6474605547: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=6474605547&serverplaceid=0 - Studio
20:05:22.226 Failed to load animation with sanitized ID rbxassetid://7122813910: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=7122813910&serverplaceid=0 - Studio
20:05:22.226 Failed to load animation with sanitized ID rbxassetid://7122814691: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=7122814691&serverplaceid=0 - Studio
20:05:22.227 Failed to load animation with sanitized ID rbxassetid://7122815427: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=7122815427&serverplaceid=0 - Studio
20:05:22.227 Failed to load animation with sanitized ID rbxassetid://7122811999: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=7122811999&serverplaceid=0 - Studio
20:05:22.237 MeshContentProvider failed to process https://assetdelivery.roblox.com/v1/asset?id=8299579901 because 'could not fetch' - Studio
20:05:22.238 MeshContentProvider failed to process https://assetdelivery.roblox.com/v1/asset?id=8299579168 because 'could not fetch' - Studio
20:05:22.238 MeshContentProvider failed to process https://assetdelivery.roblox.com/v1/asset?id=8299579716 because 'could not fetch' - Studio
20:05:22.238 MeshContentProvider failed to process https://assetdelivery.roblox.com/v1/asset?id=8299580081 because 'could not fetch' - Studio
20:05:22.239 MeshContentProvider failed to process https://assetdelivery.roblox.com/v1/asset?
etc..
so much skidded messages
😭
but did you see any problems with script i send you
no, not really
bro you you made it so everytime the character gets added, the character.Humanoid.Died gets connected again, making it stack
you didnt even read it did you
I didnt wanna read allat, just skimmed it plus the Main Problem is him
uuuu so tuff
its also you
youre trying to help a guy without understanding the problem
bro stfu im 3 day at this
get out
just gtfo
yeah
alright damn 💔
skid
so what can i do
GET OUT
first you gotta delete the
character.Added
connection
likee
this part
change it to
local hum = player.Character:WaitForChild("Humanoid")
hum.Died:Connect(function()
how so
bro idk 
is there an error saying "Possible infinite yield on :WaitFOrChild("Humanoid")
in the output
but can you help me only with gun
cause before all that
knife kill give you points are gun kill dont
free assets?
yeah
well
unless you want to spend days debugging everything
you cant make a coherent game with free assets
unless its building
but not with scripts
i suggest you do things yourself, so everything works with eachother
otherwise itll be a mess and well
yeah u wont do dog shit
wait i will send you where i got it
** You are now Level 5! **
doesnt matter
ull have to learn scripting on your own
and sure you can use free assets but only if you know how to make them work
How to Make Team Deathmatch System! - Roblox Studio
Subscribe for More!
Folder: https://www.roblox.com/library/7463116590/Team-Deathmatch
Follow Me on Roblox: https://www.roblox.com/users/528894344/profile
Join my Discord Server: https://discord.gg/Tdupnzhw5y
Hope you enjoy it!
Special Thanks To:
-sravindran (Tester)
-mrgemmyy (Tester)
-Goofy...