generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Remote event

Previous Thread :: Next Thread 
ColdSmoke is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image