ZukaJoin Date: 2007-11-02 Post Count: 4078 |
Got a question about scripting? Ask here. I'll answer the advanced questions, Agent can do the basic ones. |
|
FlashJoeWTop 100 PosterJoin Date: 2007-12-24 Post Count: 4886 |
I suggest we use one thread, and let the other sink, i hate that double thread glitch |
|
ZukaJoin Date: 2007-11-02 Post Count: 4078 |
Yeah, this one.
I made a typo in the first one, fixed it just in time, but it ended up posting both versions. |
|
|
Basic: How do I change the reload time? :P Jkjk
Is there a way to make transparent particles? |
|
|
wuts the function of a gravitational pull |
|
JormaxJoin Date: 2007-12-08 Post Count: 3813 |
lava, it is a force.
Can you fix this? Yes, i edited it. I am wondering if you Agent can get it to work:
wait(1)
------------------------
axelvl = 100 --This is the damage given to the tree.
treeMoney = 25 --this is how much money you get for felling a tree
resettime = 1 -- this is how long it takes after the axe hit a tree until it works again. Avoid setting it to 0
------------------------
Tool = script.Parent
ting = 0 --this is my debounce
function hit()
print("hitting")
local anim = Instance.new("StringValue")
anim.Name = "toolanim"
anim.Value = "Slash"
anim.Parent = Tool
end
function onActivated()
if not Tool.Enabled then
return
end
Tool.Enabled = false
hit()
Tool.Enabled = true
end
function onTouched(hitt)
-- print("touched something")
if ting == 0 then
ting = 1
if hitt.Parent.Name == "Rock" then
c = math.random(1,3)
if c = 1 then
-- print("touched tree")
user = game.Players:findFirstChild(Tool.Parent.Name)
user.leaderstats.Money.Value = user.leaderstats.Money.Value + treeMoney --add money to the dude with the axe
r = game.Lighting.Yes:clone()
r.Position = hitt.Position
r.Parent = game.Workspace
wait(resettime)
end
if c = 2 then
r = game.Lighting.No:clone()
r.Position = hitt.Position
r.Parent = game.Workspace
wait(1)
end
if c = 3 then
r = game.Lighting.No:clone()
r.Position = hitt.Position
r.Parent = game.Workspace
wait(1)
end
end
ting = 0
end
end
Tool.Activated:connect(onActivated)
connection = Tool.Handle.Touched:connect(onTouched) |
|
|
Would it be possible to create no-tool power suits? I remember in the old Builderman Suite Hotel, they had people that would change on the buttons that you pushed. Could somebody use that method to create different powers to be used if there was a certain object in a person? Sorry I couldn't be all that descriptive. |
|
Troyg12Join Date: 2008-01-11 Post Count: 941 |
Well,i need help with this function
theres a connection at the very end of script,this is the only part in need of fixing
__________________
function blow(hit)
local humanoid = hit.Parent:findFirstChild("Zombie")
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
if humanoid~=nil and humanoid ~= hum and hum ~= nil then
local b = Instance.new("Model")
local c = Instance.new("Humanoid")
local a = Instance.new("Part")
c.Parent = game.Workspace
a.Parent = b
c.Parent = b
a.Name = "Head"
a.Size = Vector3.new(1, 1, 1)
a.Position = humanoid.Parent.Head.Position
b.Name = " "..damage.." "
tagHumanoid(humanoid, vPlayer)
humanoid.Health = humanoid.Health - damage
wait(1)
untagHumanoid(humanoid)
b:Remove()
end
end
|
|
|
explain me the robloxian universe and how we can break the barrier of our skys :p |
|
|
TheoryJoin Date: 2008-05-18 Post Count: 66 |
rand = 7
p = speaker.userId
if speaker.Backpack:findFirstChild("GunName") ~= nil then
b = rand * p[1]
local m = Instance.new("Message")
m.Text = "Your code is: " ..b
m.Parent = speaker
wait(3)
m.Parent = nil
I want it to be ontouched or onclicked, I tried to make it onclicked, but when I clicked it, NOTHING happened |
|
|
i want it so pople turn into a ball when they enter.. |
|
ZukaJoin Date: 2007-11-02 Post Count: 4078 |
Gravitational pull in ROBLOX: -196.2 units. I have no idea what type of unit its even in, but its something like a Newton. If you put BodyForce in a brick with 0, 196.2 * brick:GetMass(), 0 force, it will float and not come down. This doesn't work on a character, Humanoids mess it up. |
|
|
Can you edit this script? It's not mine, I just want to make it so it doesn't auto dig, and you have to keep clicking a certain time for the target to disappear.
-- Furnace (clockworks help!)
bin = script.Parent
halt = false
function onButton1Down(mouse)
local hit = mouse.Target
if (hit == nil) or (halt == true) then return end
halt = true
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
bin.Ping:play()
if (hit.Name == "Brick") then
while hit.Transparency <= 1 do
hit.Transparency = hit.Transparency + 0.2
wait(0.10)
end
wait(0.10)
hit.Parent = nil
end
wait(0.10)
halt = false
mouse.Icon = "rbxasset://textures\\GunCursor.png"
end
function onSelected(mouse)
--print("Action Tool Selected")
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected)
|
|
DingDong272Top 100 PosterJoin Date: 2007-12-08 Post Count: 9860 |
Hm, can I join the help thread? Or would that mess up your pretty title? |
|
|
N2KCJoin Date: 2007-11-21 Post Count: 1313 |
If you could help me... It would be on...
THE MOTOR OBJECT.
._. |
|
|
I'm trying to make a gun for that when you shoot something it breaks its joints. I've tried everything I could think of and i can't seem to get it to work. Any help? |
|
LuigiFanJoin Date: 2007-06-18 Post Count: 4143 |
Explain how to use math.sin and math.cos in some detail so I can understand, lol.
-LF |
|
|
explain to me the functions of the sparkles falling so i can make it at least like explode :3 |
|
OdeasoJoin Date: 2008-04-12 Post Count: 4 |
Ok so i have an onclicked script made a brick for it and everything now, how do i make it sumbit text just to the player that steps on it |
|
|
Hmm, If you have seen the gremlin, Then how do I get the wings to come out like that? |
|
|
And how do you make a brick look at a person? Script-Wise. |
|
|
Why doesnt the "easy" save/load sys work? |
|
|
Im making my obsticle course and I want to make the cps go in order. I heard that you need to insert them in order. Also I try to change the color of the cps and it doesnt change. Also when I change the name, i go on the server and the name isnt changed! I don't know how to do all this! Help! |
|