RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 07 Jul 2014 07:52 AM |
I have never had this problem before but now suddenly all my weapons in my RPG game have it, when I pick a weapon, it works fine the first time but if you unequip it and then equip it again, it just disappears. If you reset then it just repeats as above. After being in the game for a while it works fine again. What can it be? the script? |
|
|
| Report Abuse |
|
|
DEVMAC101
|
  |
| Joined: 01 May 2013 |
| Total Posts: 856 |
|
|
| 07 Jul 2014 07:58 AM |
| If its the RPG in your games list it appears to work fine for me, correct me if i'm wrong. |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 07 Jul 2014 09:12 AM |
| The Assassins Code [RPG] it is |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
ediee544
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 2175 |
|
|
| 10 Jul 2014 11:58 AM |
| Can you disable ALL scripts on weapon and then pick it up and see if it disappears? |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 10 Jul 2014 01:24 PM |
| I gtg now for some minutes so will try it out after, thanks already. |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 10 Jul 2014 06:01 PM |
Yes, if I disable all scripts the weapon just picks up, then works and then it just disappears if you try to equip it again. Of course the weapon doesn't work without the scripts. |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 11 Jul 2014 01:34 PM |
| ROBLOX call this forum scripting (helpers) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
|
| 11 Jul 2014 01:40 PM |
| When I played I found that to happen also, can you post the script here and also maybe switching the weapon might help. Or it just might be an error in script for 1 time use. |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 11 Jul 2014 01:46 PM |
Well in my RPG game, it doesn't work after once used. In a new place, it can be just re-equipped. Also when I pick a random weapon out of free models and I use it once, it also disappears. I think it is something in my game? I have never had problems with this untill some certain time it just broke after one use. The script called SwordScript:
dmg = (2) -- How much it Damage? (Yes the sword when fighting. xD)
hum = "Enemy" -- Whe don't really want to kill each others (player by player..) Put here your rpg monster humanoid name.
r = game:service("RunService")
ching = false
sword = script.Parent.Handle Tool = script.Parent
function blow(hit) if ching == true then return end local humanoid = hit.Parent:findFirstChild(hum) local vCharacter = Tool.Parent local vPlayer = game.Players:playerFromCharacter(vCharacter) if humanoid~=nil then tagHumanoid(humanoid, vPlayer) local damage = dmg humanoid:TakeDamage(damage) local part = Instance.new("Part") if (damage == 0) then part.BrickColor = BrickColor.new(23) else part.BrickColor = BrickColor.new(21) end part.formFactor = 1 part.Shape = "Ball" part.TopSurface = "0" part.BottomSurface = "0" part.Size = Vector3.new(1.375,1.375,1.375) part.Position = hit.Parent.Head.Position+Vector3.new(math.random(-3.6,3.6),3.5,math.random(-3.6,3.6)) --<<<--MAIN REASON it broke, forgot your ,0 in middle of vector part.Anchored = true local m = Instance.new("Model") part.Parent = m m.Parent = hit.Parent m.Name = ""..damage.." Damage" part.Name = "Head" local h = Instance.new("Humanoid") h.Parent = m local body = Instance.new("BodyPosition") body.position = Vector3.new(0,7.85,0) body.Parent = part part.CanCollide = false part.Reflectance = 0.11 part.Transparency = 0.25 h.MaxHealth = 0 h.Health = 0 ching = true wait(1) ching = false m:remove() wait(.1) untagHumanoid(humanoid) end end
function tagHumanoid(humanoid, player) local creator_tag = Instance.new("ObjectValue") creator_tag.Value = player creator_tag.Name = "creator" creator_tag.Parent = humanoid end
function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:findFirstChild("creator") if tag ~= nil then tag.Parent = nil end end end
function attack() atk = {"Slash"; "Lunge"; "Slash"} wew = atk[math.random(1, #atk)]
if (wew == "Slash") then local anim = Instance.new("StringValue") anim.Name = "toolanim" anim.Value = "Slash" anim.Parent = Tool else local anim = Instance.new("StringValue") anim.Name = "toolanim" anim.Value = "Lunge" anim.Parent = Tool force = Instance.new("BodyVelocity") force.velocity = Vector3.new(0,10,0) force.Parent = Tool.Parent.Torso wait(.25) swordOut() wait(.25) force.Parent = nil wait(.5)
swordUp()
end end
function swordUp() Tool.GripForward = Vector3.new(-1,0,0) Tool.GripRight = Vector3.new(0,1,0) Tool.GripUp = Vector3.new(0,0,1) end
function swordOut() Tool.GripForward = Vector3.new(0,0,1) Tool.GripRight = Vector3.new(0,-1,0) Tool.GripUp = Vector3.new(-1,0,0) end
function swordAcross() -- parry end
Tool.Enabled = true
function onActivated()
if not Tool.Enabled then return end
Tool.Enabled = false
local character = Tool.Parent; local humanoid = character.Humanoid if humanoid == nil then print("Humanoid not found") return end attack()
wait(1)
Tool.Enabled = true end
function onEquipped()
end
script.Parent.Activated:connect(onActivated) script.Parent.Equipped:connect(onEquipped)
connection = sword.Touched:connect(blow)
Local Gui script: local Tool = script.Parent;
enabled = true function onButton1Down(mouse) if not enabled then return end
enabled = false mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
wait(.5) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true
end
function onEquippedLocal(mouse)
if mouse == nil then print("Mouse not found") return end
mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
Tool.Equipped:connect(onEquippedLocal) |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 12 Jul 2014 06:08 AM |
| Guys c'mon I really need help with this |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
|
| 12 Jul 2014 06:10 AM |
http://www.roblox.com/Zephys-Anti-Virus-Plugin-V0-94-item?id=151970737 I used this plugin and it said that it had removed some virusses like 200-250 or something so now it has 0 virusses. (Don't know if this plugin works or if there is a better virus remover) I do not know what is causing it, it's still in there while the plugin says there are 0 virusses. What could be causing this? |
|
|
| Report Abuse |
|
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|
RealistK
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 3489 |
|
| |
|