generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Vote to kill script.

Previous Thread :: Next Thread 
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
05 Dec 2012 02:33 PM
I'v tried personally scripting it myself but it wouldnt work... so I tried to edit one from free models. Searching "Vote to kill script" and all that popped up was vote to kick script. Please if someone could help... qq
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
05 Dec 2012 02:35 PM
Just check if the same thing has been said by 1/2 of the total players

Error 407:["Siggy.exe not found."] Please try again in a few moments.
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
05 Dec 2012 02:37 PM
If you can't figure out how to edit a vote to kick script into a vote to kill script, you weren't able to try in the first place.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
05 Dec 2012 02:52 PM
Make it so where it says game.Players.afnsdmdfn:Remove() change it to game.Players.whatever.Character:BreakJoints()
Report Abuse
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
05 Dec 2012 02:55 PM
im not stupid...
Report Abuse
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
05 Dec 2012 07:43 PM
Could anyone else help me with a vote to kill script?
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
05 Dec 2012 07:46 PM
Add a Value when they enter the game. If someone chats that player, add 1 to that Value. Make a function to check if the same player votes, don't add the 1 to the Value.

~ вℓα¢квσу167тнѕт, тєн вєѕт єνα. ∂υηт мєѕѕ ωιт тєн ρяσ. ~
Report Abuse
Nagrath1 is not online. Nagrath1
Joined: 27 Aug 2011
Total Posts: 42
05 Dec 2012 07:52 PM
Get a VoteKick script (From ROBLOX ._.)
Then, edit the Kicking part
Make it say

game.Workspace.Player.Humanoid.Health = 0

or something like the lame break joints .-.
Report Abuse
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
05 Dec 2012 08:16 PM
ummmm.... any more? :D? xD
Report Abuse
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
06 Dec 2012 05:27 PM
cmon please I need it bad...
Report Abuse
Biostream is not online. Biostream
Joined: 28 Mar 2011
Total Posts: 913
06 Dec 2012 05:28 PM
You've gotten too many solutions to be asking for more.
Report Abuse
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
06 Dec 2012 09:23 PM
Can you edit this into a vote kill script?



--Moded by nuit532--

print("Vote Kicker 1.0 Loaded")
---------------------------------------------------
-- This script adds the "kill" command to your game.
-- Players can type "kill [player name]" to vote to kick an abusive player.
-- If enough people vote to kick the same person, that person contracts a deadly case of NoTorsoItis
-- There is no cure for NoTorsoItis, even rejoining the game doesn't stop it.
-- The number of votes required to kick a player depends on the number of people in the game.
--
-- One cool thing - you don't need to type the player's full name, just enough letters to be sure of who you
-- want to kick.
--
-- For example: if Builderman and Builderdude are in-game, "kick builderm" is enough
-- if Builderman and Telamon are the only people in the game, you can vote to kick both
-- by typing "kick b t"
--
-- Multiple votes from the same person are ignored. As are ambigious votes:
-- Example: Builderman and Builderdude are in-game. "kick bu" is ambigious.
---------------------------------------------------


-- This hack brought to you by Telamon.

-- If you find bugs in this script, post them to the scripting forum.
-- If you find a bug and change the script to fix it, post your solution in the scripting forum. There is a 500 R$ bonus for each fix.

kickedlist = {}

voteMatrix = {}


function onPlayerEntered(newPlayer)


local stats = Instance.new("IntValue")
stats.Name = "punkstats"

local votes = Instance.new("IntValue")
votes.Name = "votes"
votes.Value = 0




votes.Parent = stats


-- VERY UGLY HACK
-- Will this leak threads?
-- Is the problem even what I think it is (player arrived before character)?
while true do
if newPlayer.Character ~= nil then break end
wait(5)
end

-- start to listen for new humanoid
newPlayer.Changed:connect(function(property) onPlayerRespawn(property, newPlayer) end )

stats.Parent = newPlayer

newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)

-- make sure this isn't a previously banned player re-entering the game

for i = 1, #kickedlist do
if (string.lower(newPlayer.Name) == kickedlist[i]) then
banish(newPlayer)
end
end

end

function getVotesNeeded()
local np = game.Players.NumPlayers

if np > 10 then return 4 end
if np > 4 then return 3 end
return 2

end

function onPlayerRespawn(property, player)
if property == "Character" and player.Character ~= nil then
local stats = player:findFirstChild("punkstats")
if (stats ~= nil) then
if (stats:findFirstChild("banned") ~= nil) then
punish(player)
end
end
end
end

function banish(player)

local stats = player:findFirstChild("punkstats")
local votes = stats:findFirstChild("votes")

if (stats ~= nil and votes ~= nil) then

votes.Value = votes.Value + 1
if (votes.Value >= getVotesNeeded()) then
local banned = Instance.new("IntValue")
banned.Name = "you have died"
banned.Parent = stats
local message = Instance.new("Message")
message.Text = "U fell off and died"
message.Parent = player
table.insert(kickedlist, string.lower(player.Name))
punish(player)
end
end


end

function punish(player)
-- called when we think the player has respawned
while true do
if player.Character ~= nil then break end
wait(5)
end

player.Character.Torso.Parent = nil
end

function matchPlayer(str)
-- find all players that start with the str
-- if there is only one, match it
-- 0 or 2+, don't match it
local result = nil

local players = game.Players:GetPlayers()

for i = 1,#players do
if (string.find(string.lower(players[i].Name), str) == 1) then
if (result ~= nil) then return nil end
result = players[i]
end
end

return result
end

function voteAgainst(voter, victim)
-- consult the voteMatrix to see if this guy has voted against that guy before

-- voter is a string - all lowers
-- victim is a player

local votesList = voteMatrix[voter]

if (votesList ~= nil) then
local prior = votesList[string.lower(victim.Name)]
if (prior ~= nil) then
-- this dude voted against that dude before
return
end
else
voteMatrix[voter] = {}
end

-- insert the record
voteMatrix[voter][string.lower(victim.Name)] = 1

banish(victim)

end

function onChatted(msg, recipient, speaker)

-- convert to all lower case

local source = string.lower(speaker.Name)
msg = string.lower(msg)


-- vote to kick the following players
-- "kick telamon buildman wookong"
if (string.find(msg, "kill") == 1) then --- msg starts with "kick"
-- words and numbers
for word in msg:gmatch("%w+") do
if word ~= "kill" then
local p = matchPlayer(word)
if p ~= nil then
voteAgainst(source, p)
end
end
end
end


end


game.Players.ChildAdded:connect(onPlayerEntered)
Report Abuse
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
08 Dec 2012 11:47 PM
Can anyone change that into a vote to kill someone script?
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
09 Dec 2012 01:13 AM
Yeah. We can. Can you? Yes. Will you? Probably not. Why not? Cause you are too lazy to listen to others who are trying to help you, and too lazy to read the script.

~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ www.youtube.com/watch?v=N2GVu0A-vC4&feature=youtu.be
Report Abuse
Cozzy00000 is not online. Cozzy00000
Joined: 02 Apr 2011
Total Posts: 3536
09 Dec 2012 01:14 AM
Yep ^

~Dacă nu puteți citi acest lucru, ieși afară
Report Abuse
SnOoZiESpUr is not online. SnOoZiESpUr
Joined: 11 Apr 2009
Total Posts: 1004
09 Dec 2012 03:29 AM
Man, 90% Of his games are Free Models, Have nothing to do with the title, or poorly made.

+ Your are being EXTREMLY ignorant, We just gave you 5 suggestions that were WAY to easy, I doubt you even read 1 sentence of how to script, how HARD is it to change a KICK to a KILL script.. I mean... You are..

Wait. Is this guy Trolling?
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
09 Dec 2012 11:06 AM
If being that arrogant is trolling, then I don't know what trolling is. I'm pretty sure he just is arrogant.

Of course, stealing a script, then trying to read the 100+ lines is going to be boring, so I would rather make it myself. (In my opinion...)

But this guy wants to change it, cause he doesn't know how to script (or listen), only way to change it is to get SOME
(Note... SOME. Not a lot, SOME. So don't give up >.>)
knowledge on changing some properties. Such as getting to the Players character and deleting the head/torso. Or changing it's health in humanoid to 0. Or, you could use the BreakJoints() method. If you want a "loopkill", use while true do --[[Stuff like breakjoints...]] repeat wait() until player.character end.

Use wiki.roblox.com as a reference or guide.

~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ www.youtube.com/watch?v=N2GVu0A-vC4&feature=youtu.be
Report Abuse
hiimfree is not online. hiimfree
Joined: 18 Jul 2011
Total Posts: 396
09 Dec 2012 11:12 AM
1. I barely use free models, unless its too hard of a script
2. Im not on the level of being able to figure out how to edit the script, I looked at it about like 10 times while noone replied to it. And this is what I get from scripting "Helpers" some rude comments?
3. I am not trolling unless I reply to your forum saying your a free modeler.
Report Abuse
blocabox is not online. blocabox
Joined: 06 Dec 2012
Total Posts: 865
09 Dec 2012 11:23 AM
Just change it to where it says kick change it to remove joints or head or health = 0, anything that could kill. It's really simple mate...
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
09 Dec 2012 11:30 AM
"1. I barely use free models, unless its too hard of a script"

It can only be hard to script, if you don't know any knowledge of it. So I'm guessing, all of your places are "too hard to script"?


"2. Im not on the level of being able to figure out how to edit the script, I looked at it about like 10 times while noone replied to it. And this is what I get from scripting "Helpers" some rude comments?"

Rude comments? We've given you MANY suggestions on how to edit it! Yet you don't follow! If you actually READ the script, you'd know what to do! I even read it myself, and I know what to do. But yet you're TOO lazy, thinking you're "TOO COOL TO SCRIPT". READ. IT.


"3. I am not trolling unless I reply to your forum saying your a free modeler."

Doesn't define that you are not a troller. You still are, so you could be trolling right now. The world may never know, like how many licks it takes to get to the middle of the lollipop.



~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ www.youtube.com/watch?v=N2GVu0A-vC4&feature=youtu.be
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image