Justun400
|
  |
| Joined: 06 Aug 2008 |
| Total Posts: 48 |
|
|
| 12 Sep 2017 05:55 PM |
When the first player joins they cant use their tool. It just straight up does not work. But everyone who joins from there on out, their tool does work. here are the tool's local and regular scripts.
========================================================================================
Script --------------------------------------------------------------- wait(2) local Tool = script.Parent play = Tool.Parent.Parent char = play.Character hum = char.Humanoid
local en = true
Tool.RemoteEvent.OnServerEvent:connect(function(play,mousehit) local a = hum:LoadAnimation(Tool.Throw) a:Play() wait(0.5) local fireball = Tool.Handle:clone() fireball.Position = Tool.Handle.Position local bv = Instance.new("BodyVelocity") bv.MaxForce = Ve######################## bv.Velocity = mousehit.lookVector * 500 bv.Parent = fireball fireball.CanCollide = false fireball.Parent = game.Workspace game.Debris:AddItem(fireball,4) local ten = true fireball.Touched:connect(function(hit) if not ten then return end ten = false local ehum = hit.Parent:findFirstChild("Humanoid") or hit.Parent.Parent:findFirstChild("Humanoid") if ehum and ehum ~= hum then hit.Parent.Torso.Velocity = Vector3.new(mousehit.lookVector.x * 100,0,mousehit.lookVector.z * 100) elseif hit.Anchored == true and hit.CanCollide == true then for i=1,1 do # local part = Instance.new("Explosion") part.BlastPressure = 0 # # pa################ 0 part.DestroyJointRadiusPercent = 0 part.Position = fireball.Position --part.BodyVelcoity.MaxForce = Vector3.new(1e8,0,1e8) part.Parent = game.Workspace end end wait() ten = true end) end)
=======================================================================================
LocalScript --------------------------------------------------------- local Tool = script.Parent play = game.Players.LocalPlayer local mouse = play:GetMouse() char = workspace:WaitForChild(play.Name) hum = char.Humanoid root = char.HumanoidRootPart
local en = true Tool.Activated:connect(function() if not en then return end en = false Tool.RemoteEvent:FireServer(mouse.Hit) wait(0.5) en = true end) |
|
|
| Report Abuse |
|
Justun400
|
  |
| Joined: 06 Aug 2008 |
| Total Posts: 48 |
|
|
| 12 Sep 2017 06:42 PM |
| Update: Just the owner can't join. The owner does not have working scripts. |
|
|
| Report Abuse |
|