ColdSmoke
|
  |
| Joined: 02 Jan 2012 |
| Total Posts: 5784 |
|
|
| 21 Sep 2014 11:35 AM |
Keeps saying .Event and :Fire are not members of remote event
--Server local AddUnit = Instance.new('RemoteEvent',Game.Workspace) AddUnit.Name = 'AddUnit'
AddUnit.Event:connect(function(BrickColorTeam,Vector3Position,StringUnit) local Reference = Game.ServerStorage:FindFirstChild(StringUnit or 'Robloxian') if Reference ~= nil then local Unit = Reference:Clone() Unit.Parent = Game.Workspace Unit.TeamColor.Value = BrickColorTeam Unit:MoveTo(Vector3Position) else error('Invalid Unit Type') end end)
--Client local Player = Game.Players.LocalPlayer local Mouse = Player:GetMouse()
local AddUnit = Game.Workspace:FindFirstChild('AddUnit')
wait(2) AddUnit:Fire(BrickColor.new('Bright red'),Vector3.new(0,20,0),'Robloxian') AddUnit:Fire(BrickColor.new('Bright blue'),Vector3.new(10,20,0),'Robloxian') |
|
|
| Report Abuse |
|
SirNoobly
|
  |
| Joined: 01 Oct 2009 |
| Total Posts: 253 |
|
|
| 21 Sep 2014 11:37 AM |
http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial
Read up on it. |
|
|
| Report Abuse |
|