ServanoJoin Date: 2007-05-06 Post Count: 181 |
Here they are -
- Remember Waffleboy's Choose-Your-Job Fight? I want that script where his monsters drops XP (Those shiny reflecting balls) [Paying 3000 Tix's and 200 ROBUX]
- A script to save your weapons that you've recently picked up (When you respawn you keep it also) [Paying 3000 Tix's and 200 ROBUX]
|
|
|
weapon:
function onDied(player)
local c = player.Backpack:GetChildren()
wait(5.1)
for i = 1,#c do
if game.StarterPack:FindFirstChild(c[i].Name)==nil then
c[i].Parent = player
end
end
end
function onPlayerRespawned(newPlayer)
newPlayer.Character.Humanoid.Died:connect(function() onDied(newPlayer) end)
end
function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end
game.Players.PlayerAdded:connect(onPlayerEntered) |
|
|
i think this drop script will work
while true do
wait(0.1)
if script.Parent:findFirstChild("Humanoid").Health = 0 then
local p = Instance.new("Part")
p.Parent = game.Workspace
p.Shape = 0
p.Size = Vector3.new(1,1,1)
p.Position = script.Parent:findFirstChild("Torso").Position
p.BrickColor = BrickColor.Red()
end
|
|
ServanoJoin Date: 2007-05-06 Post Count: 181 |
I have something like that but you have the one like Waffleboy's :3 |
|
|
my bad here
while true do
wait(0.1)
if script.Parent:findFirstChild("Humanoid").Health = 0 then
local p = Instance.new("Part")
p.Parent = game.Workspace
p.Shape = 0
p.Size = Vector3.new(1,1,1)
p.Position = script.Parent:findFirstChild("Torso").Position
p.BrickColor = BrickColor.Red()
p.Name = "Drop"
p.Parent:findFirstChild("Money"):clone().Parent = p
end
make those touch thingy brick then name it Money and put it like inside the figure
|
|
brOofrangeTop 100 PosterJoin Date: 2007-12-06 Post Count: 7945 |
Dropping St00f
while true do
wait(0.01)
if script.Parent:findFirstChild("Humanoid").Health == 0 then
local Brick = Instance.new("Part")
Brick.Parent = game.Workspace
Brick.Shape = 0
Brick.Size = Vector3.new(X,Y,Z)
Brick.Position = script.Parent.Torso.Position
Brick.BrickColor = BrickColor.Blue()
Brick.Reflectance = 0.1
Brick.Transparency = 0.1
local BrickS = Instance.new("Script")
BrickS.Parent = Brick
BrickS.Source = [[
stuff
stuff
stuff
stuff
]]
end |
|
|
drop exp
function OnDeath()
local Exp = Instance.new("Part")
Exp.Parent = game.Workspace
Exp.Shape = 0
Exp.Size = Vector3.new(1,1,1)
Exp.BrickColor = BrickColor.new(23) --I think this is blue if my memory is correct
Exp.Transparency = 0.1
Exp.Reflectance = 0.1
Exp.Position = script.Parent.Torso.Position + Vector3.new (math.random(-5,5), math.random(-5,5), math.random(-5,5))
Exp.Velocity = Vector3.new (math.random(-10,10), 10, math.random(-10,10))
local Cleanup = Instance.new("Script")
Cleanup.Source = [[
wait(60)
script.Parent:remove()
]]
Cleanup.Parent = Exp
local Giver = Instance.new("Script")
Giver.Source = [[
function OnTouch(Hit)
local Player = game.Players:findFirstChild(Hit.Parent.Name)
if Player ~= nil then
Player.leaderstats.Exp.Value = Player.leaderstats.Exp.Value + 1
script.Parent:remove()
end
end
script.Parent.Touched:connect(OnTouch)
]]
Giver.Parent = Exp
end
script.Parent.Zombie.Died:connect(OnDeath)
Pu this script directly into a zombie. |
|
|
Typo
drop exp
function OnDeath()
while true do
local Exp = Instance.new("Part")
Exp.Parent = game.Workspace
Exp.Shape = 0
Exp.Size = Vector3.new(1,1,1)
Exp.BrickColor = BrickColor.new(23) --I think this is blue if my memory is correct
Exp.Transparency = 0.1
Exp.Reflectance = 0.1
Exp.Position = script.Parent.Torso.Position + Vector3.new (math.random(-5,5), math.random(-5,5), math.random(-5,5))
Exp.Velocity = Vector3.new (math.random(-10,10), 10, math.random(-10,10))
local Cleanup = Instance.new("Script")
Cleanup.Source = [[
wait(60)
script.Parent:remove()
]]
Cleanup.Parent = Exp
local Giver = Instance.new("Script")
Giver.Source = [[
function OnTouch(Hit)
local Player = game.Players:findFirstChild(Hit.Parent.Name)
if Player ~= nil then
Player.leaderstats.Exp.Value = Player.leaderstats.Exp.Value + 1
script.Parent:remove()
end
end
script.Parent.Touched:connect(OnTouch)
]]
Giver.Parent = Exp
wait(0.1)
end
end
script.Parent.Zombie.Died:connect(OnDeath)
Pu this script directly into a zombie. |
|
furnaceJoin Date: 2007-05-05 Post Count: 232 |
What happened to the "5000tix... ...for each"?! Just kidding.
A "died" event can be triggered a more efficient way. Instead of making a while loop, you could use "humanoid.Died:connect(HumanoidDied)" where "humanoid" is your humanoid and "HumanoidDied" is the function it goes to. Make sure the "HumanoidDied" function is above that command.
=======================================================
lifespan = 15 --How many seconds the parts will last
debounce = false
function GiveMoney(part, hit)
if (hit.Parent:FindFirstChild("Humanoid") ~= nil and debounce == false) then
debounce = true
p = game.Players:GetPlayerFromCharacter(hit.Parent)
if (p ~= nil) then
p.leaderstats.MONEY_NAME_HERE.Value = p.leaderstats.MONEY_NAME_HERE.Value + 1 --Change amount if you want
end
part.Parent = nil
debounce = false
end
end
function HumanoidDied()
for i=1,3 do
p = Instance.new("Part")
p.Shape = 0
p.Size = Vector3.new(1,1,1)
p.Reflectance = 0.7
p.BrickColor = BrickColor.new(23)
p.TopSurface = 0
p.BottomSurface = 0
p.Position = script.Parent.TORSO.Position + Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2))
p.Parent = game.Workspace
p.Touched:connect(function(hit) GiveMoney(p, hit) end)
delay(lifespan, function() p.Parent = nil end)
end
end
script.Parent.Humanoid.Died:connect(HumanoidDied) |
|
ServanoJoin Date: 2007-05-06 Post Count: 181 |
Going to test out your guys scripts, give me a few minutes and I'll message you with the ROBUX/TIX |
|
|
i alredy got messaged but im not in bc D: |
|
coolj123Join Date: 2007-10-29 Post Count: 6037 |
lol XD ROLOL |
|