brOofrangeTop 100 PosterJoin Date: 2007-12-06 Post Count: 7945 |
This is brought to you by
BROofRANGE
RandomRobot
DingDong272
We're here to help you make or fix scripts you may have. So feel free to post. Make sure if its something to create. Make sure its not in the toolbox before posting. But if its not, Make sure its something we can actually do.
~ BRO-Bunny |
|
|
How do I creat my own script?
Ø-? GD ?-Ø |
|
KazeJoin Date: 2007-05-08 Post Count: 9448 |
Ok here's a few scripts that arent in the toolbox that i NEED!
1:A script that makes people on the permission list run faster and jump higher.
2:A script that checks the player's backpack to see if they already have the tool.If they don't have the tool, it gives the player the tool.
3:A script that makes people respawn with the tool they got from the above script. E.g;You got the tool, and someone kills you.Then you respawn with the tool already in your backpack instead of you needing to do the stuff to get the tool again. |
|
Dack1Join Date: 2007-08-25 Post Count: 2596 |
[Post Obliterated] |
|
Rhino1004Top 100 PosterJoin Date: 2007-06-09 Post Count: 4926 |
This is a swim tool script. 66 lines long, absolutely phails. When you press Q, you swim up. When you press E, you swim down. Fix it please. If it's not fixable, then totally scrap it and make a new one. Pwease? :<
----------------------
-- § Rhino1004 §
player = game.Players.LocalPlayer -- j00
char = player.Character -- j00 character
bin = script.Parent
curHeight = bin.Height.Value -- Height is a value.
maxHeight = 50
function inWater(part)
if part.Name == "Water" then
sub = Instance.new("IntValue")
sub.Name = "Submerged"
sub.Parent = player
print("Submerged")
end
end
function float() -- Makes j00 float
if char.Torso ~= nil and player:findFirstChild("Submerged") ~= nil then
body = Instance.new("BodyPosition")
body.maxForce = Vector3.new(0, 4e+004, 0)
body.position.y = maxHeight
body.Parent = char.Torso
curHeight = MaxHeight
print("Floating")
end
end
function noFloaty(part) -- Makes j00 NOT float
if part.Name == "Land" then
char.Torso:findFirstChild("BodyPosition").Parent = nil
player:findFirstChild("Submerged").Parent = nil
curHeight = MaxHeight
print("No float")
end
end
function SwimDown(key)
if key == "e" then
curHeight = curHeight - 2
print("Downwards")
end
end
function SwimUp(key)
if key == "q" and curHeight ~= maxHeight then
curHeight = curHeight + 2
print("Upwards")
end
end
while true do
wait(0.1)
char.Torso:findFirstChild("BodyPosition").y = curHeight
end
function onSelected(mouse)
print("PIE")
mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
mouse.KeyDown:connect(SwimUp)
mouse.KeyDown:connect(SwimDown)
end
bin.Selected:connect(onSelected)
char["Right Leg"].Touched:connect(float)
char["Left Leg"].Touched:connect(noFloaty) |
|
CullJoin Date: 2007-12-16 Post Count: 1252 |
can you fix this script? it should be self explanatory:
player = game.Players.LocalPlayer
function onTouched(hit)
if hit.Name == water then
print("water hit")
i = math.random(1,5)
if i == 1 then
player.Leaderstats.Fish = player.Leaderstats.Fish + 1
script.Parent:remove()
else
end
script.Parent:remove()
else Print("no water")
script.Parent:remove()
end
end
end
script.Parent.Touched:connect(onTouched)
so what it's supposed to do is: 1). check if it hit a brick named water
2). if it didn't, print no water in output and end or print water hit
3).check a random number
4). if it's 1 then increase their stat "fish"
the problem is that even if it hits a brick named "water" it still prints no water and ends. |
|
N2KCJoin Date: 2007-11-21 Post Count: 1313 |
player = game.Players.LocalPlayer
function onTouched(hit)
if hit.Name == "water" then
print("water hit")
i = math.random(1,5)
if i == 1 then
player.Leaderstats.Fish = player.Leaderstats.Fish + 1
script.Parent:remove()
end
script.Parent:remove()
else Print("no water")
script.Parent:remove()
end
end
script.Parent.Touched:connect(onTouched)
If that doesn't work, then it will almost work. Test it in Solo Mode, with the Output window. >_>
|~N2KC~|
P.S. It SHOULD work. I would completely redo it, if I wasn't busy. >.> |
|
CullJoin Date: 2007-12-16 Post Count: 1252 |
it's mostly working, xcept I'm not sure how to tell it who the player is, because it's made by a slingshot. |
|
hk1777Join Date: 2007-10-03 Post Count: 6522 |
cull sling shot shots have whats called ObjectValue in them and tracks who shot it |
|
CullJoin Date: 2007-12-16 Post Count: 1252 |
yay it works now. ty. |
|
DOOMKINGJoin Date: 2007-12-27 Post Count: 9516 |
The only problem with these kind of threads is that the people who make them can't keep up with all the posters wanting help and most of them are asking simple things that the wiki could answer but instead bump the questions that require more helping (A.K.A harder scripts) |
|
ZephyricJoin Date: 2011-12-25 Post Count: 2621 |
Thanks |
|